I save a binary file by "write":
The above steo can successfully save my data.Code:id=creat("file",0666);
write(id, variable, 512*512*4000*sizeof(float));
close(id);
But when I try to read it in, by:
Code:id2=open("file",0);
if(read(id2, input, 512*512*4000*sizeof(float)) != 512*512*4000*sizeof(float)) ;
exit(-1);
To here, it stopped. It looks this "read" has some problems. But when I use smaller data, like 256*256*2000*sizeof(float), it works.
How can I fix this problem?
Thank you.