I would like to open a binary data file, read and print the information using c/c++.
In Matlab I can use fread to read the file, but I am not sure how to use fread in c/c++.
Here is my code in Matlab:
file=fopen(MyBinaryfile,'rb');
V =fread(file,1,'*int32');
E =fread(file,1,'*double');
p =fread(file,1,'*int32');
nrP =fread(file,1,'*int64');
nrSh =fread(file,1,'*int64');
nrPr =fread(file,1,'*int64');