Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
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 />" Loop MyFile.Close
Join the community of 500,000 technology professionals and ask your questions.