| Description: |
From comp.lang.tcl, the following interaction occurred.
> According to Andreas Kupries <[email protected]>:
> : The
> :higher level routines (split2*, read2* from a
channel) however
> :unfortunately do assume that one record == one line
and thus bust it.
>
> Is there a way that these could either be extended,
or that parallel
> commands able to deal with multiple lines could be
developed?
Maybe. Well, at least parallel commands should be
possible, but
they
will need some sort of extended parser, i.e. read the
whole channel,
then parse the whole string into records and split
records, without
regarding to lines. I am currently unsure if the
low-level split will
return an error if it sees an incomplete record or if
it will do a
best-effort of generating something.
The point is this - the lower level csv commands , with
appropriate settings (which may need documenting) can
read and process multiline records.
However, the higher level read2matrix, etc. procs
appear to have some built in limitations with respect
to newline terminated records.
|