title: Ruby: No such file or directory
body: <p>Why do i get this error 'ruby: No such file or directory -- Readingfile.rb (LoadError)' when i run my ruby program to read files? </p>
  
  <p>My code:</p>
  
  <pre><code>filename = ARGV.first
  
  txt = open(filename)
  
  puts "Heres your file#{filename}:"
  print txt.read
  
  print "TYpe the filename again"
  file_again = $stdin.gets.chomp
  
  txt_again = open(file_again)
  
  print txt_again.read
  </code></pre>