![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Once you have finished writing information into a file, you must
close the file before you can open it for reading and further
processing. The do-nothing, somewhat dangerous way to close your files is
to wait until your program stops executing: At that point, your operating
system is supposed to close all open files automatically. The safer way
to close your files is to include an explicit file-closing statement, such
as the following, which closes the output file associated with the
analysis_target
file pointer:
fclose (analysis_target);