Remove duplicate lines.
Removing duplicates is faster if you sort the list and then look for the duplicates. That takes O(N log N) time versus O(N^2) time for the type of lookup you have here. Here's an example:...
View ArticleRemove duplicate lines.
Well, what is the value of "Loaded.Items.Item(i).ToString" at the point where you recieve the error? Your code looks pretty much okay up to that point, though. I got a modified version of the code to...
View ArticleRemove duplicate lines.
Hi,try this one, it will check first, if you have the ( or the ) inside the text, and also checks for readed lines if they contain any data:Private Sub Button1_Click(ByVal sender As System.Object,...
View ArticleRemove duplicate lines.
I have lines like this in my text file15.0 28 Black (2 01.00 02.0) [1 14.79 33.3] 133611 -81725 229111 1477515.0 28 Black (2 01.00 01.0) [1 13.71 33.3] 135111 -81725 229111 727515.0 28 Black (2 01.00...
View Article
More Pages to Explore .....