Join Kevin Skoglund for an in-depth discussion in this video Input/output basics, part of Ruby Essential Training.
In this chapter, we are going to learn to work with files and directories in…Ruby, and I think it will be helpful if we start up that discussion by first…taking a look at the basics of input and output.…Frequently, you'll see input and output abbreviated as simply I/O. So if you…hear me say I/O, that's what I am referring to it as input and output.…And what we were talking about is input into a Ruby program and output from that program.…We've been using some of the basic Ruby output for some time now.…We've been using both the puts and print, and we have seen how both of those…work that's basic output, and so that our program can put something out to…either the command line or to irb.…
Now input, we haven't really seen yet.…We've been running a file, running our program, but that's not really input…that's the program itself.…Even in irb where we were typing things into the command line, that still is…sort of writing the Ruby code itself.…With input, what we really mean is getting information into the program.…
- Using Ruby in the Interactive Ruby Shell and in standalone scripts
- Learning to write custom code blocks to find, merge, and sort
- Using modules for namespacing or as mix-ins
- Reading from and writing to files
- Creating a full Ruby project from start to finish
Skill Level Beginner
Q: You mention e-texteditor.com as a place to get a Windows "sister" version of TextMate. However, e-texteditor.com looks like a Chinese auto website. Are there any other alternatives?
1. Getting Started with Ruby
2. Ruby Object Types
3. Control Structures
4. Code Blocks
8. Working with Files
9. Ruby Project: Creating the Food Finder
- 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.