Check if infile is outfile