[Question] Reading from 2 files at the same time...
#1

Hmm.. how would you read from 2 different files, at the same time and compare line-by-line correctly?
(Using fread, not a file system)
Reply
#2

Maybe this?
pawn Код:
while(fread(file1, string1) && fread(file2, string2))
{

}
Reply
#3

Nope, because if one of them will finish the last line, the other one will stop reading aswell.
Reply
#4

Then what would be the point of comparing 2 files if either one of the files cuts early?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)