Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading output information from a file

Status
Not open for further replies.

bn2hunt

MIS
May 15, 2003
203
US
I want to read in a text file that will contain information that I will use to create another file, such as tab locations and variable names. Is there a way to do this?

Code:
Set FS = CreateObject("Scripting.FileSystemObject")
Const forreading = 1              ' Read only access
startrec = " 1 " 
endrec = " 3 "
cpu = " 2 "
Set handle1 = fs.OpenTextFile("c:\test.txt", forreading)
Do Until handle1.AtEndOfStream
	rec = handle1.ReadLine
Loop
WScript.echo startrec & rec & endrec
[\code]
[code]
"OPTI 620/3.4" & Chr(9) & cpu & Chr(9) & "1PC PENT 4  "
[\code]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top