Well it would work fine if the input was 0 and 1 only. I guarantee that, but it looks like the input is not so, and scanf just puts the value 0 for it is not reading anything appropriate.
If you post the content of the input, and i suspect that you should type:
> cat /home/phil4985/cs1313student/soonerglitch_telem.dat
to get that printed, we could guide you to read it appropriately.