title: All lines of a file are printing over each other
body: <p>I am trying to print the contents of a file to the terminal.  When I run the script it prints all of the lines on top of each other, so I see the entire last line, the last bit of the other lines, etc.  I have tried executing from Powershell and cmd, same result.  Here is the code I am running...</p>
  <pre><code>File.open(&quot;test.txt&quot;, &quot;r&quot;) {|file| puts file.read}
  </code></pre>
  <p>Here is the contents of the file...</p>
  <blockquote>
  <p>First line......1.</p>
  <p>Second line...2</p>
  <p>Third line.3</p>
  </blockquote>
  <p>Here is what results...</p>
  <blockquote>
  <p>PS C:\Users\Alynn\rthw&gt; ruby ex19.rb test.txt</p>
  <p>T h i r d   l i n e . 3 . . 2 . . . 1 .</p>
  </blockquote>
  <p>I've looked everywhere, but I can't find any reason for it.</p>