NAME
AppendString2File — Open a file and write a string at the end, then close file.
SYNOPSIS
AppendString2File StringValue FilePath
DESCRIPTION
Return Value
None
Arguments
StringValueString to append to file.
FilePathPath of file to write to.
More Info
Note that there already exists the command ::fileutil::appendToFile, which is very similar in functionality, but has a different order of arguments. We missed this when putting together Gen, and thanks to those who pointed it out. You may well prefer to use this command.

If the file does not already exist, this command will create a new one.

This current version does not allow for setting an encoding option. It will always use utf-8.


For information regarding exceptions / errors, see here.
EXAMPLES
% String2File 1-2-3 test.txt
% cat test.txt
1-2-3
% AppendString2File 4-5-6 test.txt
% cat test.txt
1-2-3
4-5-6
SEE ALSO
String2File
KEYWORDS
append, file, string