The reason why I didn't just put the getc command in the while loop is because I also need to store variables later. (I should be able to figure out that part.) Anyways, the Settings file contains:
0,0
With no linebreak or anything. But when I used debugging output, I got: