Created
March 22, 2019 13:02
-
-
Save eggist77/b5cfa629a4ea0ad9c314efb881e3485a to your computer and use it in GitHub Desktop.
textRead
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'test | |
'Read a text file | |
'iomode | |
Const ForReading = 1, ForWriting = 2, ForAppending = 8 | |
txtFile = "txtfile.txt" | |
Set fso = WScript.CreateObject("Scripting.FileSystemObject") | |
Set f = fso.OpenTextFile(txtFile, ForReading) | |
Do Until f.AtEndOfStream | |
line = f.ReadLine | |
msgbox line | |
Loop | |
f.Close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment