[J3] Value separators
Steve Lionel
steve at stevelionel.com
Thu Feb 2 15:13:32 UTC 2023
Reading CSV files is far more complex than dealing with value
separators. Fields can be dates, times, currencies and more. Yes, some
programs that write CSVs offer the option to enclose strings in quotes,
but many do not. Trying to shoehorn this into list-directed (or even
formatted) input would be a mistake.
I think that we already have an effective tool for reading CSVs in the
new SPLIT intrinsic. This has you specify the delimiter(s) you want to
look for and allows you to make interpretation choices on a column by
column basis.
As for writing CSVs, that's what we put in unlimited repeat count and G0
for. Is it perfect? No. But it is a useful tool that satisfies many needs.
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20230202/4ed9a487/attachment-0001.htm>
More information about the J3
mailing list