title: Ruby, getting path from path+filename
body: <p>Programming language: Ruby 1.9</p>
  
  <p>Problem String: <code>C:/Test/blah.txt</code><br>
  to <code>C:/Test/</code></p>
  
  <p>I know it's an easy question, but Google and the Ruby quickref for <code>File</code> have no solution for me.<br>
  And I have no experience with Regex.</p>