O'Reilly logo

Ruby Programming for the Absolute Beginner by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. File and Folder Administration

In this chapter, you will learn the ins and outs of how to use Ruby to develop scripts that interact with the computer’s file system. In doing so, you will learn how to develop scripts that can create, rename, and delete files and folders. You will learn how to determine a file’s size and to iterate through a folder’s contents. You will also learn how to write data to text files. This will include learning how to write data to new files as well as how to overwrite or append data to existing text files. Finally, you will learn how to read and process data stored in files. On top of all this, you will learn how to create a new Ruby script, the Ruby Blackjack game.

Specifically, you will learn how to:

  • Create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required