Hello,
I have problems opening a file of which the name is specified as a
SubString. The substring is a result of a readdlm, which is fine by me,
but I don't know how to get rid of its substringness. Well, perhaps
ascii() will do the job---but that is not the point of this message.
The problem is isolated in the following code:
julia> open(match(r"ab", "abc").match, "r") ## should try to open a file
called "ab"
ERROR: a SubString must coincide with the end of the original string to be
convertible to pointer
in convert at string.jl:659
in open at io.jl:351
in open at io.jl:363
I believe the offending line is in a ccall
systemerror("opening file $fname",
ccall(:ios_file, Ptr{Void},
(Ptr{Uint8}, Ptr{Uint8}, Int32, Int32, Int32, Int32),
s.ios, fname, rd, wr, cr, tr) == C_NULL)
Cheers,
---david