$bool = SaveFile (
<file name>, <$variable>, [nooflines] )
< file name >
File to write.
> Variable containing the text to write.
[ nooflines ] Number
of lines of text to be written.
returns a boolean value indicating success or failure; 1 for success
and 0 for failure.
After saving the file, it updates the date/time, filesize information in the group variable.
$Variable.Line1 = "hello"
$Variable.Line2 = "world"
$Status = SaveFile("abc.txt", "Variable")
- Replaces the
first 2 lines of text in file "abc.txt" if it already exists, else, a file is
created by the name and the content is written from the variables $Variable.Line1