You don't need to load the whole file into memory, but just as many lines as there are in your search string. So you can use the following approach:
In reply to Re: Out of memory
by Ratazong
in thread Out of memory
by sandy105
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |