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.
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,
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