Hi, guys!
I would like to read a .txt file (of maaany lines) and compare each line with all the rest, in order to check if some of them are repeated.
Any ideas how I should do it?
read every line as a string with getline() and put it into a vector. then sort the vector so that if there any identical lines they are one after the other.
Hi, guys, thanks!
I am having problem assigning the lines to a vector components. I can read them with getline(), print them out e.t.c., but I can't find a way to store them..