GetText

Top  Previous  Next

 

The GetText Special Function Command allows you to retrieve the text from the specified file formatted as a string.

lamp Important: Special Function commands can only be used on the right hand side of a Variable Assignment command.

Command Syntax

 

GetText,[FullyQualifiedFileName]

 

The comma character after the command is compulsory as is the file name parameter.

 

Parameters:

 

TargetFileName: The fully qualified path and file name of the file from which to retrieve the text.

 

The parameter is compulsory. If any required parameter is missing or invalid an error will be thrown. The parameter must be surrounded by quotation marks if one or more spaces are included in the path and file name. It is good practice to include the quotation marks in any case, so that it reduces the risk of error when writing scripts.

 

Example:

 

Retrieve the from a local text file

 

Var:Text=GetText,"C:\Temp\text.txt"

 

See Also: Special Functions GetWebText GetRegistryValue IncrementFileVersion