Beyond FTP Feature Tour
Beyond FTP Script
Editor - Write Command
Back
to Feature Tour


The Write command implements two forms of file writing in
Beyond FTP scripts. The List form simply writes a string at the end of the
specified file. The command includes the name of the file and the string to
write, enclosed in quotes (“). The use of quotes allows leading and trailing
blanks to be included in the string. The file is opened and closed with each
write. The string is always appended to the end of the file and followed by
carriage return and line feed characters. The quote characters are not
written. This form is the complement of the While command List variation. It
allows scripts to create lists that can then be processed by other scripts
or other programs.
The Value form is the complement of the substitution wildcard. The string of
characters is loaded into the wild card file for the specified section and
parameter. Leading and trailing blanks are ignored. The written value may be
immediately retrieved with the substitution wildcard.
Example:
:Write: List C:\Temp\Output.Txt
“A test on %M2/%DM/%Y4 of %’AVarName’ ”
:Write: Value [ Stores, %’StoreName’ ] %’StoreNum’
Back
to Feature Tour

|