Chapter 10. Working with the Filesystem in Ruby
In this chapter, we'll explore various ways to work with files in Ruby, including the ability to create, open, edit, and delete files using built-in methods and classes. After you have completed this chapter, you will be able to do the following:
- Demonstrate how to work with the
File
class in order to generate, read, edit, append, and delete files in Ruby - Explain how file permissions work with the Ruby
File
class methods