title: Creating an empty file in Ruby: "touch" equivalent?
body: <p>What is the best way to create an <strong>empty</strong> file in Ruby?</p>
  
  <p>Something similar to the Unix command, <a href="https://en.wikipedia.org/wiki/Touch_%28Unix%29" rel="noreferrer">touch</a>:</p>
  
  <pre><code>touch file.txt
  </code></pre>