how to read binary file writen by "fwrite"

From: ChenFeng <fengfengabc003_at_nyahnyahspammersnyahnyah>
Date: Fri Jan 24 2014 - 13:45:11 MST

hi,

Does anybody know how to read binary file writen by "fwrite" in c language.
The file is writen by the code below:

fpR = fopen(fileR,"wb");
if(fpR==0) return false;
fwrite(&NumValidCuts,sizeof(NumValidCuts),1,fpR);
fwrite(Elevation,sizeof(float),NumValidCuts,fpR);
fwrite(RData,sizeof(float),NumValidCuts*MaxRads*RGates,fpR);
fclose(fpR);

I tried fbinrecread, cbinread, but failed.

Thanks.

feng
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jan 24 13:45:40 2014

This archive was generated by hypermail 2.1.8 : Fri Feb 07 2014 - 16:39:11 MST