|
-
Mar 5th, 2002, 11:09 PM
#1
Thread Starter
Lively Member
Txt File "Selective Input"
I need to scan a text file for lines that contain the word "error." The file gets to be rather large over time and don't I want to
Code:
Do Until EOF(iFile)
Line Input #1, strLine
'Process Here
Loop
each time unless I have to.
Is there a way to read in ONLY the lines that contain the selected text?
Thanks!
Kevin
-
Mar 6th, 2002, 06:19 AM
#2
Frenzied Member
Sorry, but that's not possible... you'll still have to loop trough all the lines of text in the file. But you can optimize the code to make it faster... all you need is a "Line Input" and an "If Left(...) Then", more than that and it might get too slow.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|