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.