Now my problem is on line 8. My input file is integers but it reads and gives the correct output even if I define them as a char or string. I'm using TextEdit to make the input file and saving it as a plain text file. Anyone know of a way to correct this?