that maybe should be += 7 ?! what you have *does not do anything*.
your data and code have too many random numbers for me to invest in unscrambling what else may not be right in there. what is 21? what is 7? what is 112 in the file mean?
are you trying to skip lines in the file that are unimportant? If so, I don't think you did that right.
It just has to verify 4 digit with security code and yeah it does not do anything after it.
I am trying to skip lines, 21 is total number of lines, 7 is every 7th line is the same type of information
1234, 1235, 1236 are 4 digits that has to verify with security code which are 111 112 113 relatably
you need to actually read each line, even if you don't use it, for text files. binary files can skip junk, text files cannot so easily.
you want to read the line, that is security code, does it match, if not its not your guy, read N lines until next security code, check that one ... until you find the guy or run out of file.
Try coding that pattern, see if it works. And again, watch that for-loop final statement: unless intending to do weirdness, you should modify the loop variable in the last statement(s). Its ok to not do that if you know what you intend: for(; condition; ) is fine so long as inside the loop, you either loop forever by design or modify something that triggers a break or the condition.... :) and some people even put all their code in the loop body for simple loops, also fine.
for(x = 0; x < 1000; cout << x++;); //intentional weirdness.