Use Ruby to interact with the file system. Learn how to read and write to files, import and export data, create reusable templates, and find and organize files and directories.
- [Kevin] Learning to read and to write files using Ruby code unlocks many powerful techniques. Files provide a simple and robust data storage option. Your Ruby programs can read configuration files or write to log files. You can use files to export data for other systems to use or to import data from other systems. Files can be used to automate tasks like mail merging, or Ruby can navigate a file system to find or organize files. It's a valuable skill to have in your programming toolbox. In this course, you'll learn the fundamentals of working with files and directories.
I'm Kevin Skoglund, and I've been using Ruby to work with files for over 13 years. I still love it and can't imagine programming without it. Let's learn the essentials of working with files in Ruby.
- File system basics
- Writing to and reading from files
- Renaming, deleting, and copying files
- Creating and editing directories
- Working with common data formats
- ERB templating
Skill Level Beginner
Ruby on Rails 5 Essential Trainingwith Kevin Skoglund10h 21m Beginner
1. The File System
2. Work with Files
3. Work with Directories
4. Common Data Formats
5. ERB Templating
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.