+ 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
1 Answer