Use an RDBMS, e.g. SQLite or PostgreSQL. Stuff the lines read into a table, create an index on the column, and use something like SELECT line,COUNT(*) FROM table GROUP BY line to fetch the counts.
Alexander
In reply to Re: Out of Memory
by afoken
in thread Out of Memory
by instinct_4ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |