Working with Files in Ruby
by Syed Aslam in Ruby · 10 min read
The built-in class File provides the facilities for manipulating files in Ruby. Let us explore the basic file operations, including opening, reading, writing along with querying file objects to get information about the file itself.