Hi~ every one~ I have a queston about fread function. if i have a
code like this:
(nscrdh and data are defined as two dementional arrays and both of
them were stored in the same binary file)
fread(&nscrdh,s izeof(nscrdh),1 ,in);
fread(&data,siz eof(data),1,in) ;
How can i know where the second fread start? Is it just start from the
end of the first fread? Or somewhere else?
Because i tried to write "data" first and read them out. But after i
read it out , the value is differet from the original.
Thanks~
code like this:
(nscrdh and data are defined as two dementional arrays and both of
them were stored in the same binary file)
fread(&nscrdh,s izeof(nscrdh),1 ,in);
fread(&data,siz eof(data),1,in) ;
How can i know where the second fread start? Is it just start from the
end of the first fread? Or somewhere else?
Because i tried to write "data" first and read them out. But after i
read it out , the value is differet from the original.
Thanks~
Comment