+ 1

how to use ā€œfreadā€to deal with the matter of struct

eg:freadļ¼ˆļ¼†struct1,sizeof(struct2ļ¼‰ļ¼Œ1,fileļ¼‰ļ¼Œthen will one member of struct1 be the first line of file?and how can I decide the size of one member?please give more advice on the function of "fread" in reading and getting message from a file,thx

19th Sep 2017, 1:00 PM
Jean
1 Answer