Loop each line of the txt loading them one by one in a List.
If the entrance is already present in that List, skip the current line.
Pseudo-code will be.
List li;
For Each line in txt
For Each element in li
If line == element
li.add(element);
Easy ;)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.