Check to see if output file is open.