I have written the following code segment:
strVar = \"one line that I want to write in the text file with extension .csv\"
\'Set fso = CreateObject(\"Scripting.F
If you want to append to a file, simply open the file for appending:
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("C:\path\to\your.csv", 8, True)
f.WriteLine "text to append"
f.Close
You also don't need to use CreateTextFile()
first. The 3rd parameter of OpenTextFile()
already takes care of that.
As far as printable characters are concerned, there is no difference between ISO-8859-1 and what Microsoft calls "ANSI" in textfiles.