I installed Ruby 1.9.2 on my Win 7 machine. Created a simple analyzer.rb file. It has this one line:
analyzer.rb
File.open(\"text.txt\").each {|line| puts l
Try using
Dir.glob(".")
To see what's in the directory (and therefore what directory it's looking at).