Far too much of a guessing game. Try doing a od command on each of the files, say for the first couple of lines of input.
Most likely, a tab will be spaces, or one file will end in a DOS format, and not Unix.
The od command will show you the actual characters in each of the files (not just how they show on a screen), so you shold be able to decipher from there.