Hello,
I'm reading from a text file that looks like this:
001ASD034 | B21D43 | 04/30/2005
001CAN061 | D32J45 | 09/03/2004
001CAN061| D32J45 | 09/03/2004
I need to read the words in the line seperated by | which i did by:
i only need to store the unique lines. So, in the above case, i would only store the first and second line and leave out the third because it's same as the second. This the step, i'm stuck on. I was thinking to store the each
word in a line in a
string array and add that to the HashSet. But this would not work, as A new object of array class is created with every line so they will all appear different to the Hashset. Could someone please suggest how to approach this part of the problem. I'll be really grateful.
Thanks,
Mala