title: How do I read from a file in the same directory?
body: <p>I'm very much a beginner. I'd like to learn to read and write a file. Here's what I'm trying.</p>
  
  <pre><code>rdfile = File.open('bhaarat.txt', 'r+')
  </code></pre>
  
  <p>Unfortunately, this is returning "C:/directoriesblahblah/ubuntu3.rb:1:in 'initialize': No such file or directory - bhaarat.txt (Errno::ENOENT)</p>
  
  <p>I have found solutions but I am not only new to Ruby but new to programming in general so I couldn't get an answer that made sense to me out of those.</p>
  
  <p>Thanks in advance!</p>