AppendString2File — Open a file and write a string at the end, then close file.
String to append to file.
Path of file to write to.
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.