Opening files in Ruby can be done very similarly to the way it is done in PHP:
fhandle = File.open("some-file.ext", "r")
That will place a file handle, to the specified file, in the fhandle variable. Don’t forget to close the file when you’re finished:
fhandle.close
See more on the File class at Ruby-Doc.org