-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reading strings? #1
Comments
Could you propose a sample usage? |
I'm not sure what you mean. I ocasionally use HDF5 as a cross-language storage format (with the advantage of being able to memory-map it) and would like to be able to store and load arrays of strings among other things. I think the original request was related to storing descriptions of the samples stored in another HDF5 collection. |
I am using HDF5 to interoperate with some matlab code and need to store and load strings in HDF5 files. package main
import ("fmt"
"github.com/ready-steady/hdf5")
func main() {
fp, _ := hdf5.Create("strings.hdf5")
defer fp.Close()
fp.Put("key", []string{"Hello", "HDF5"})
st := &[]string{}
fp.Get("key", st)
fmt.Printf("The String Array is: %v\n", st)
} Which gives an error message
|
Note that if you want to store a single string, you can use |
It would be great if this library would support reading arrays of strings from HDF5 files.
The text was updated successfully, but these errors were encountered: