title: Reading a single element from HDF5 file
body: <p>Could you please provide me with an example of reading a single element from HDF5 file using HDF5DotNet library. I know how to read the full array into the memory and select the necessary element by index. The problem that I don't want to read the full array and would like to use the H5S.selectElements method (<a href="http://hdf5.net/api/M_HDF5DotNet_H5S_selectElements_4_9e6f2387.aspx" rel="nofollow noreferrer">http://hdf5.net/api/M_HDF5DotNet_H5S_selectElements_4_9e6f2387.aspx</a>).<br/>
  So far I've created the following:</p>
  
     <pre><code>H5.Open();
  H5FileId fileId = H5F.open(this.filePath, H5F.OpenMode.ACC_RDONLY);
  var dSet = H5D.open(fileId, "/Link");
  var dSpace = H5D.getSpace(dSet);
  var dDims = H5S.getSimpleExtentDims(dSpace);
  var dType = H5D.getType(dSet);
  
  H5S.selectElements(dSpace, H5S.SelectOperator.SET, InpPtr numElements,long [] coord);
  </code></pre>
  
  <p>I can not figure out how to define the numElements parameter and coord of the element (I have 3 dimensional array).</p>