This routine is available starting with katl-commons 1.0.
printInFile(filepath, var[, charset][, boolean])
Prints in the specified file the provided value. It appends the value to the file. For best results, use absolute paths, since relative paths are resolved starting with the current working directory.
Specifies the file name to write in.
Specifies the character expression to write into the file filepath.
Specifies the charset used to write that file.
Available starting with katl-commons 4.0.0.
|boolean||boolean||No||'true' if new line is added after character expression is added to file, otherwise 'false'. Defaults to 'true'|
Available starting with katl-commons 188.8.131.52.
Empty value. The returned value has no meaning.
printInFile("C:/story.txt", "Once upon a time...");
Prints to the story.txt file the record Once upon a time...
It is recommended that you use forward slashes ( / ) for file paths. As a general observation use the silEnv() routine to create an absolute path.