I am looking to see an easy way to read and write to a text file using VBScript.
I think this is an acceptable method for writing to a file.
Dim f, Dim fso Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.CreateTextFile("C:\test.txt", True, True) f.WriteLine("Data to Add to file.") f.Close
However, I would like to know how to read from a file in a similar way.
windows scripting vbscript
Curtis inderwiesche
source share