Update ReadFile.rb

Fixed some bugs.