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.
See more on the File class at Ruby-Doc.org
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.
See more on the File class at Ruby-Doc.org