title: Ruby gets reading from file given as argument
body: <p>I have a ruby script that is run with <code>ruby myscr.rb ./text_file.txt</code> that reads input with <code>gets</code> and writes it to the file, but <code>gets</code> seems to be reading from the file and not terminal input. How do I force it to get input from the terminal in the same way as <code>gets</code>?</p>