need help - with giant text files :)

new topic     » topic index » view thread      » older message » newer message

Hi Everyone, I'm trying to find the best way to
work with very large text files ( larger than 500,000 lines ).
I need to find information in it very quickly. Example:
find all lines with the word "optical". I don't want to have
to scan every line each time I need information. My thoughts
are to load the file and assign a memory location to each word.
(This means the file will take up twice as much memory, but, that's ok.)

Then I would create an alphabetical list of all the words and assign the

memory locations of each word. This way, when I need to find
all the lines with a certain word I can call it quickly from the
alphabetical list.  I'm writting to ask if anyone knows of a
better way. :) ...thanks ...timmy

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu