InstallAware for Windows Installer
 

Read from Text File

This command helps you read a single line of text from a text file.

Read from File

Enter the full path of the file on the target system to read from.

Into Variable

Enter the variable that will receive the text read.

Return EOF Check in Variable

Provides a way to determine if the end of file has been reached. The variable specified here will contain TRUE if the file end has been reached, and FALSE if not.

 Notes

  • The variable specified in the Into Variable field will only be written to if the text file exists and can be successfully read from. An empty string in this variable, if it was not previously empty, will indicate that the source text file contained an empty line.
  • If the file is being read from for the first time, it will be automatically opened. Any previously opened file will be automatically closed.
  • If the file is being read from is already open, the read will continue from the last file position.
  • If the end of file has been reached, or at the end of the installation, the file will be automatically closed.
  • Prefix the path specified in the Read from File field using the special sequence #READALL\ if you wish to read in the entire file, instead of just the first line of the file. Lines in entire files read this way will be separated using the $NEWLINE$ variable.