You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default readdlm now treats multiple whitespace separators as one, and ignores leading and trailing whitespace. But this seems not to be the case for trailing whitespace after the last data line.
However if I put any whitespace directly before or after the final \n of the second example, I get the following error:
readdlm(IOBuffer(" 1 2 \n 3 4 \n"))
ERROR: BoundsError()
in dlm_offsets at datafmt.jl:201
Therefore a delimited file ending with \r\n will fail, which was my use case. But perhaps in general all trailing whitespace should be allowed and ignored?
julia> versioninfo()
Julia Version 0.3.0-prerelease+1286
Commit bedfe12* (2014-01-28 21:18 UTC)
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i5-3360M CPU @ 2.80GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
LAPACK: libopenblas
LIBM: libopenlibm
The default readdlm now treats multiple whitespace separators as one, and ignores leading and trailing whitespace. But this seems not to be the case for trailing whitespace after the last data line.
Hence these work:
However if I put any whitespace directly before or after the final
\n
of the second example, I get the following error:Therefore a delimited file ending with
\r\n
will fail, which was my use case. But perhaps in general all trailing whitespace should be allowed and ignored?ref #5391
The text was updated successfully, but these errors were encountered: