puts $FILENAME while ARGF.gets # returns last current file even when closed puts $FILENAME