your problem looks to be here
inFile.getline(input1, 101);
inFile2.getline(input2, 101);
}
itll try getting a newline even tho eof has been reached
replace it like this
if infile.eof=false then getline
else print all of infile2 and quit
similarly for infile2
__________________
Why did the Comp. Engineer get X-mas and Halloween mixed up?
Because Oct(31) == Dec(25)
|