While writing into a file , Where intermediate data stored in between fopen() and fclose()?
问题 Below is a small program which takes information from user and write it into a file teacher.txt . I am using only one array q2[30] for taking input and writing into a file using fprintf() . But when i want to enter more teacher then again loop will execute but at this time fclose() will not appear so data will not be write/save(don't know) into file also previous value of q2 get erased/overwrite with new input. So in this case where data is stored/write by fprintf() .Because when i manually