Forum Discussion
rraghvani
Champion Level 3
3 years agoYou can also use Scripting.FileSystemObject as shown below, which appends a string to the end of file.
function AppendFile()
{
let FS = getActiveXObject("Scripting.FileSystemObject");
let F = FS.OpenTextFile("C:\\Temp\\MyTest.txt", 8);
F.WriteLine("Three");
F.Close();
}
Again, you will have to create your own function, if you want to write a string to a specific location.