🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: net.micro.atari
1 messages
1 total messages Started by Eric Terrell Tue, 28 Jan 1986 21:04
addendum to question about TDI Modula-2
#2306
Author: Eric Terrell
Date: Tue, 28 Jan 1986 21:04
32 lines
1268 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads