Handle situation to output to file but a filename is not provided