Quote:Quickest way to retrieve data from a very large text file?
The answer is : depends on what you mean by 'retrieve data'.
- Do you need to process all lines ?
- Do you know lines numbers of lines you want to process ?
- Do you need to need to process lines 1 by 1 and forget them after ?
- Do you need to find a line by its contain ?
- Is the file grow or change with time ?
The answer to those questions imply a different way to speed up the operation. Loading the whole file in
is only the easiest for you.
File functions allow you to read line by line, jump to a position.
You can also load the file in a database.