Lynn McGuire
unread,Aug 14, 2018, 7:11:05 PM8/14/18You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I am opening a text file with up to 4,096 characters per line. But a
line length could be zero. I am using the Open Watcom 1.9 Fortran 77
compiler and libraries. I am getting an IO-27 error when trying to read
a line (that is not 4,096 characters).
Here is file opening code:
OPEN (UNIT = infile,
* FILE = INPATH,
* ACTION = 'READ',
* ACCESS = 'SEQUENTIAL',
* STATUS = 'OLD',
* FORM = 'FORMATTED',
* IOSTAT = OPERR,
* ERR = 500)
Here is the code for reading a line (worked fine with 80 characters):
character*1 mm (4096)
READ (INFILE, 11203, END=999) (MM (i), i = 1, inputlinelength4096)
11203 FORMAT(4096A1)
I am getting this error from the Watcom runtime:
*ERR* IO-27 formatted record or format edit descriptor is too large for
record size
The file that I am reading is 1,018 characters long.
What am I screwing up ?
Thanks,
Lynn