Readdlm > strange behaviour

file_error
I heve 14 line in file but readdlm reads only no empty lines ? What wrong ?

julia> readdlm("file.txt",'\t')
3×1 Array{Any,2}:
 "00-028"
 "reqweae"
 "qwe"

julia> readdlm("file.txt",'\r')
3×1 Array{Any,2}:
 "00-028"
 "reqweae"
 "qwe"

julia> readdlm("file.txt",'\n')
3×1 Array{Any,2}:
 "00-028"
 "reqweae"
 "qwe"

julia> readdlm("file.txt",'\t',String)
3×1 Array{String,2}:
 "00-028"
 "reqweae"
 "qwe"

julia> readdlm("file.txt",'\n',String)
3×1 Array{String,2}:
 "00-028"
 "reqweae"
 "qwe"

julia>

julia> readdlm("file.txt",'\r',String)
3×1 Array{String,2}:
 "00-028"
 "reqweae"
 "qwe"

Paul

help?> readdlm
  [...]
  
  readdlm(source, delim::AbstractChar, T::Type, eol::AbstractChar; header=false, skipstart=0, skipblanks=true, use_mmap, quotes=true, dims, comments=false, comment_char='#')

  [...]

  If skipblanks is true, blank lines in the input will be ignored.

  [...]

Use readdlm(source, skipblanks=false).

2 Likes