- [Instructor] In this movie, we're going to talk…a bit more about how the file pointer works in Ruby.…A file pointer is similar to the cursor…in a word-processing application.…That is that we can move its position around…inside the document to decide what point…we want to start doing an activity.…We can move it forward, we can move it backward.…That means that it has a position…and we can change that position.…We can choose a position that we want…to start reading or writing.…However, unlike a cursor in a word-processing application,…if we start writing at the point where the file pointer…currently is, it does not insert new text,…instead, it overwrites the text.…
That's a very important difference.…It doesn't allow us to just start typing…and just move everything further down,…instead, it overwrites the text at that point.…As we saw in the last movie,…we called the gets or read methods,…it automatically moves the pointer along,…so that it keeps track of what we already read,…it doesn't read back from the beginning,…
- 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.