It looks ok at first glance. Do you define s1? I have no code I can extract for a simple example, but I have many where I use strings in a compound data type.
S > -----Original Message----- > From: Hdf-forum [mailto:hdf-forum-boun...@hdfgroup.org] On Behalf Of > Insane > Sent: Wednesday, April 10, 2013 4:57 PM > To: hdf-forum@hdfgroup.org > Subject: Re: [Hdf-forum] c# read different datatypes > > I got stuck with it.When i use call s1[0].a.ToString() ,it returns > " > ",the rest of the data wich distinguishes from CharArray is not also > correct.How should i define the datatype of the dataset in another > way?Should i define the datatype only for string data and is it > possible? > H5AttributeId attributeId=null; > H5DataTypeId dataType = null; > H5DataSetId dsetId = H5D.open(fileID, "/metadata/songs"); > dt = H5D.getType(dsetId); > H5D.read(dsetId, dataType, new H5Array<metadata>(s1)); > > > > -- > View this message in context: http://hdf-forum.184993.n3.nabble.com/c- > read-different-datatypes-tp4026057p4026071.html > Sent from the hdf-forum mailing list archive at Nabble.com. > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > Hdf-forum@hdfgroup.org > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org ________________________________ This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail. _______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@hdfgroup.org http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org