ruct student_type), 1, fp2);\rfreadU fwrite?nopqrpspqr34count`rptu?vwxpyz{|\r}~WSpYZfpl`cd(@PSJK`
w)`fp2`cdBp\r` copy`x\r& (P.318)\rb4 [\`op~Z`abcd<e\r#include<stdio. h>\r#define SIZE 4\rstruct student_type\r{\rchar name[10];\rint num;\rint age;\rchar addr[15];.\r}stud[SIZE];\rvoid save()\r(\rFILE *fp;\rint i;\rif ((fp=fopen( w stu_listw , "wb" ))= =NULL)\r(\rprintf( w cannot open file\n");\rreturn;\r)\rfor(i=0;i<SIZE;i++)\rif(fwrite(festud[i], sizeof (struct student_type), 1, fp)!=1)\r{ printf( "file write error\nw );\rexit(l);\r)\rvoid main()\r(\rint i;\rfor(i=0;i<SIZE;i++)\rscanf( "%s%d%d%s” ,stud[i]3name, & stud[i]. num, & stud[i]. age, & stud[i]. addr);\rsave();\r}\r¥