Handling Files In Ruby

[Solved] Handling Files In Ruby | Ruby - Code Explorer | yomemimo.com
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

Answers related to handling files in ruby

Code Explorer Popular Question For Ruby