If your file strictly follows the format you posted (that is every line has
4
characters length) then your program should work as it stands.
On the other hand, if there are 'irregular' lines (for instance, having extra blanks) then your program would fail.
If you are going to allow such 'irregular' lines then you better use
fgets[
^] (instead of
fseek
) to read whole lines.