dataset.read( chunk_out, PredType::NATIVE_INT, mspace3, filespace );
 
/*  
 *   This example shows how to read data from a chunked dataset.
 *   We will read from the file created by extend.C 
 */
 
#include <string>
#ifndef H5_NO_NAMESPACE
using namespace std;
#endif
#ifdef OLD_HEADER_FILENAME
#include <iostream.h>
#else
#include <iostream>
#endif
#include "H5Cpp.h"
#ifndef H5_NO_NAMESPACE
using namespace H5;
#endif
const string FILE_NAME( "SDSextendible.h5" );
const string DATASET_NAME( "ExtendibleArray" );
const int      NX = 10;
const int      NY = 5;
const int      RANK = 2;
const int      RANKC = 1;
int main (void)
   hsize_t  i, j;
   // Try block to detect exceptions raised by any of the calls inside it
   try
   {
      /*
       * Open the file and the dataset.
       */
      H5File file( FILE_NAME, H5F_ACC_RDONLY );
      DataSet dataset = file.openDataSet( DATASET_NAME );
      /*
       * Get dataset rank and dimension.
       */
      // Get filespace first.
      DataSpace filespace = dataset.getSpace();
      // Get number of dimensions in the file dataspace
      int rank = filespace.getSimpleExtentNdims();
      // Get and print the dimension sizes of the file dataspace