in reply to Checking LInes in Text File
For small files read the file a line at a time and add the lines to a hash.
When you have read a line first check that it's not in the hash already. If not, print it to the output file and insert it into the hash, otherwise skip to the next line.
If you can't figure that out, write some code that is your best guess at how to do it, ask again and include your code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking LInes in Text File
by Anonymous Monk on Jun 01, 2006 at 20:47 UTC | |
by GrandFather (Saint) on Jun 01, 2006 at 23:13 UTC | |
by Anonymous Monk on Jun 02, 2006 at 00:27 UTC | |
by GrandFather (Saint) on Jun 02, 2006 at 00:38 UTC | |
by Anonymous Monk on Jun 02, 2006 at 16:52 UTC | |
|