[net.micro.atari] addendum to question about TDI Modula-2

terrell@OHIO-STATE.CSNET (Eric Terrell) (01/29/86)

My ambition is to be able to read a sequence of integers from a file.

I am able to open the file with OpenInputFile("pentde.txt");

The contents of pentde.txt is several integers, each on its own line:

0
1
2
3
2
1
2
3
4
3
2
4

terrell@OHIO-STATE.CSNET (Eric Terrell) (01/29/86)

My ambition is to be able to read in a sequence of integers from a file.
I am able to open the file with:

OpenInputFile("pentde.txt");

The contents of pentde.txt is a group of integers, one per line:

5
6
7
5
4
3
2
3
4
5
6
7


When my program runs, every other read doesn't work, and every other read
....... I mean the first, third, fifth, etc reads work, and the
second, fourth, sixth reads don't word (read in a zero).

So what's wrong?  If you know how to read in a sequence of integers
from a file, please let me know (sent me a working program).

Thanks in advance,

Eric Terrell       CSNET address terrell@OHIO-STATE