I am implementing HDF5 where I need to check if given group name exists in
the file or not. How do I do it?
I checked using:

H5G_info_t *grpInfo;
hid_t lapl_id = H5Pcreate(H5P_LINK_ACCESS);
H5Gget_info_by_name(file_id, groupName, grpInfo, lapl_id);

Please let me know if I can use 'grpInfo' to open existing group?

Actually, what I want is, if the group name doesn't exist then I should
create new with the same name.

But, if it is there in the file then I should open it..

Is it possible?

 

-----
Best Regards,
Santosh
-- 
View this message in context: 
http://hdf-forum.184993.n3.nabble.com/Check-if-group-exists-tp2601701p2601701.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to