Re: [julia-users] HDF5, how to save string data to file?

2016-10-13 Thread Steven G. Johnson
HDF5.jl supports writing strings. For some reason, datatype(String) doesn't work, but datatype("This is a string") works. So just pass the string data, and not the string type, to datatype. Even simpler, just do write(g, "/dane", "my string"), for example.

Re: [julia-users] HDF5, how to save string data to file?

2016-10-13 Thread Erik Schnetter
You could look at the JLD package instead of using HDF5 directly. The HDF5 package might be missing support for variable-length strings. -erik On Thu, Oct 13, 2016 at 6:36 AM, wrote: > how to save string data to file? What wrong ? > > julia> dset = d_create(g,

[julia-users] HDF5, how to save string data to file?

2016-10-13 Thread programistawpf
how to save string data to file? What wrong ? julia> dset = d_create(g, "/dane", datatype(String), dataspace(nol)) ERROR: `datatype` has no method matching datatype(::Type{String}) julia> dset = d_create(g, "/dane", datatype(UTF8String), dataspace(nol)) ERROR: `datatype` has no method matching