Question : Handling files in Ruby
Answered by : ben-kiboma
#Use the File class to open a file. As a result you’ll get a File object,
but not the contents of the file yet.
file = File.open("users.txt")
Source : | Last Update : Tue, 06 Sep 22
Answered by : ben-kiboma
#Use the File class to open a file. As a result you’ll get a File object,
but not the contents of the file yet.
file = File.open("users.txt")
Source : | Last Update : Tue, 06 Sep 22