Skip to content

storeContentFromFile (Accessing Contents of and Persisting Files within the "Files" module)

Compatible with:
  • Purpose
  • This command is used to "store" the contents of a "file" present within the "Files" module in the project. The command takes as input two parameters (a) In the "Target" field, the "Filename" and (b) In the "Value" field a Variable name into which the file contents will be stored into. File formats supported are .txt, .xml & .json and maximum number of characters from the File that can be stored into the “Variable” are 5000 characters.
  • Syntax
  • storeContentFromFile(fileName, variable)
  • Target (mandatory)
  • fileName
  • Value (mandatory)
  • variable
  • Return Value
  • N/A
  • Errors & Exceptions   
  • Condition Error/Exception Message
    File doesn't exist in the project The file name provided in the target '"<filename>"' does not exists in the project.
    Format not supported The file provided in the target '"<filename>"' is not a supported format.

 


 

Feedback and Knowledge Base