...of data. The usual way to this is to read/write the structures directly:
bytes=sizeof(mystruct);
GpFileRead(h_file, mystruct, offset, (ulong*)bytes );
or
bytes=sizeof(mystruct);
GpFileWrite(h_file, mystruct, offset, (ulong*)bytes );
there is one problem tho - across platforms compiler...