I am looking to see a simple way to read from and write to a text file using VBScript.
I think this is an acceptable method for writing to a file.
D
Dim obj : Set obj = CreateObject("Scripting.FileSystemObject") Dim outFile : Set outFile = obj.CreateTextFile("in.txt") Dim inFile: Set inFile = obj.OpenTextFile("out.txt") ' Read file Dim strRetVal : strRetVal = inFile.ReadAll inFile.Close ' Write file outFile.write (strRetVal) outFile.Close