Home Segments Index Top Previous Next

554: Mainline

It is good programming practice to close input files when you are finished reading from them, just as you should close output files when you are finished writing to them. You close input files with the same kind of statement you use to close output files:

fclose (file pointer name);