I have a question that has been eluding me for the whole day. I want to read part of a file and compare it to other parts of same file. if I can get some kind of logic on how to collect the first set of lines and compare it with the other sets and then move to the next set and compare with the remaining until I compare every set with each other..
what I want to accomplish is this read the first 3 lines skip the next compare it with the next 3 line, skip the next and compare it with the next 3 line and after that move to the 2nd 3 lines and compare that with the 3rd set and 4th set and so on. So what am trying to do is something like
for{ int i=0; i < file.lenght; i++
for {int j=0; j=i+1; i++{
}}
but for a txt file
SAMPLE FILE
this is the way to go
this is not really it
what did they say it was
laughing hahahahahahahaa
are we on the right path
this is not really it
what did they say it was
smiling hahahahahahahaha
they are way behind
tell me how to get therr
home here we come
hahahahahahahaha they laught
are we on the right path
this is not really it
what did they say it was