Read Text File
- From: "dthmtlgod" <dthmtlgod@xxxxxxxxxxx>
- Date: Thu, 12 Jan 2006 13:14:12 -0500
I am trying to read a text file. Stop when it finds a match, skip a certain
amount of lines and then right that data to another file. I am in the
initial steps of this. It stops when it finds a match, but I need for it to
skip some lines and read the text file again.
Set fso = CreateObject("Scripting.FileSystemObject")
Set fs1 = fso.OpenTextFile("deml.txt", ForReading)
Do while not fs1.AtEndofStream
rs1 = fs1.ReadLine
If Mid(rs1,11,7) = "PRIMARY" Then
rs1.skipline()
rs1.skipline()
rs1.skipline()
rs1.skipline()
rs1.skipline()
MsgBox (rs1)
End If
loop
.
- Follow-Ups:
- Re: Read Text File
- From: Richard Mueller
- Re: Read Text File
- Prev by Date: Re: HTML table to 2d array
- Next by Date: Dumb table text color ques.
- Previous by thread: Runtime Error
- Next by thread: Re: Read Text File
- Index(es):
Relevant Pages
|