|
-
Dec 11th, 2006, 10:54 AM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] How to read a block of text line by line?
Hi,
I mainly process text files and if I need to run through the file twice, I'll open and read through the file twice, line by line, picking out the info I need.
I know this is inefficient. I was thinking of reading a text file line by line and putting each line into a List of String and then I could reprocess using that.
Or could a text file be read as a block, e.g. IO.ReadAllText(), and somehow processed line by line?
What do you suggest? I mentioned twice above, but actually it might be up to a dozen times.
Thx for your tips.
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
|