The close() function closes the i/o stream referenced by the specified file handle close( MYFILEHANDLE ); Also flushes data from buffered i/o streams before the stream is closed