Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thanks... I dont think you have the right syntax for vb.net here. Also I dont think i need to use a hashset. A simple array list would do the trick for me. But i was dumb enough not to think of this at first. Thanks again Commented Apr 18, 2011 at 16:05
  • @swordfish: If you have large files, a program using a hashset would run much faster, and really isn't (much) more complicated. Commented Apr 18, 2011 at 17:25
  • @swordfish: If you use an array then you'll have to sort it, and every check will require a binary search. If you don't sort it then every lookup will be a linear search and that will take a very long time. A HashSet will be much faster. Sorry for the C#, by the way. But you should be able to convert without much trouble, since it's mostly just using BCL objects. Commented Apr 18, 2011 at 17:45