close

f << close -- closes the file f.
close f -- closes the file f.

In the case of an output file, any buffered output is first written to the file, and the return value is an integer, normally 0, or -1 on error, or the return status of the child process in case the the file was a pipe.

See also File and Manipulator.

Go to main index.

Go to concepts index.