Join Kevin Skoglund for an in-depth discussion in this video Input/output basics, part of Ruby: Files, Formats, Templates.
- [Instructor] We'll begin learning how to work with files…and directories by getting a big picture view…of the file system.…And it's going to be helpful if we start by taking…a look at the basics of input and output.…Input and output are vital to having a dynamic program.…Otherwise, our programs would run the exact same way…every time they were executed.…Making a program interactive with input and output…makes it more flexible and much more useful.…Now, frequently you're going to see input and output…abbreviated as I/O.…
So if you hear me say IO, I'm referring to input and output.…In our case, we're going to be talking about input…into a Ruby program and output from that program.…In the Ruby essential training courses…that proceeded this one…we've already seen examples of output in Ruby.…We've been using puts and print to send output…either to the command line or to the IRB console.…We've also seen an example of input.…We've used gets to pause a programs execution…and wait for the user to type a line of text…
- 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.