The Read Text File action enables you to automate the reading of a text file.

You can read the text file into a FinalBuilder variable, and also process each line in the OnReadLine event.

 

 

Read File

Filename

Specify the name of the text file to read.

Allow reading of files in use by other processes.

Specify this option so that other processes can still read the text file while the action is.

Options

Put file contents into variable

Specify this option (and a variable) so that you can examine and manipulate the contents of the file in subsequent actions.

When the action executes, the "OnReadLine" event is called for each line of the text file which makes it easy to process the file line-by-line in script.

Escape any variables

Specify this option to escape any variable references in the source file.

For example, if the source contains % signs then they will be replaced as %%. This means that you can safely use an action which expands variable references in the variable contents, without errors.

Also See

Escaping Variable References