looks like our mails crossed at the same time - I didn't get to read your reply before posting mine.
Yes, I realise now that the best way to go is to read in line by line and that's what i've been trying now. The reason why i've been clamouring on about keeping all the words in the memory was because on reading the file linewise, some sentences get split midway and I lose the info . Say for "John F. Kennedy",the John bit is in one line and F. Kennedy in the next.
I guess i'll have to get around that problem by storing atleast3 consecutive lines in memory at any one time?
Thanks for all the suggestions.
J
In reply to Re: Re: Out of memory
by Anonymous Monk
in thread Out of memory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |