> I see that the data file from which the strings are read do prefix all
> strings with a space character.  So it looks like the intent is that
> FORMAT(20A5) should do the right thing.  Maybe the root cause is in
> the code reading the data file.

For example the data file contains lines like this:

42       YOU ARE IN A MAZE OF TWISTY LITTLE PASSAGES, ALL ALIKE.

Right after the number is a TAB character, and then there's a space
character, and then the text.  "42\t YOU..."

1004    READ(1,1005)JKIND,(LLINE(I,J),J=3,22)
1005    FORMAT(1G,20A5)

1G should read a number.  I'm guessing the TAB is a separator here?  In
that case, 20A5 ought to read the text including the first space
character.
_______________________________________________
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Reply via email to