text files & strings

Tech-Archive recommends: Fix windows errors by optimizing your registry



I'm trying to pick tables out of a group of text files. I wrote code that
would load the text file into a string, use InStr to find the location of
each <TABLE and </TABLE>, then use Mid to pick the data out. It works great
.... except with larger files (>3MB) I get an out of memory error. How can I
go through larger files without trying to load the whole text file into a
string? I can't use Input because the files are not comma-delimited, and I
don't think I can use Line Input because sometimes there isn't a line feed
in the whole text file. Any ideas on how I can do this? I'm using Visual
Basic 6.


.



Relevant Pages