I need to scan this file for a string and also change certain strings. I believe I need to use the opentextfile method. I have been unable to determine how. If possible, could someone point me in the correct direction? Below is as close as I have gotten to code that will work. I am open to any suggestions or better methods. Thanks again.
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
Dim fso, MyFile, FileName, TextLine
Set fso = CreateObject("Scripting.FileSystemObject")
' Open the file for output.
FileName = "c:\scripts\test.cfg"
' Open the file for input.
Set MyFile = fso.OpenTextFile(FileName, ForReading)
' Read from the file and display the results.
Do While MyFile.AtEndOfStream <> True
TextLine = MyFile.ReadLine
msgbox TextLine & "<br />"