[J3] Is there a simple way to read this?

Van Snyder van.snyder at sbcglobal.net
Wed Apr 9 21:30:53 UTC 2025


I have a CSV file with these lines (and many others):

01:55,-42,922,697,200,160,235,-1,2273,5766,2199,712,6742,0
02:00,,,,,,,,,,,,,

I read the first two fields from line(1:2) and line(4:5), then the rest
from line(7:) using list-directed input

I had expected this to work, based on subclause 13.10.3.2.

But the second line gets an END= exit. Is this because the definition
of "null value" does not include

 * no characters after the last value separator and the end of the
   record

Is there a simple way that I've missed in 007 to read such lines, or
must I pre-check and pre-process such lines, replacing the last
character non-blank of the line, if it's a comma, with ",/"?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20250409/df2386de/attachment.htm>


More information about the J3 mailing list