Join Kevin Skoglund for an in-depth discussion in this video CSV, part of Ruby: Files, Formats, Templates.
- [Instructor] In this chapter,…we're going to explore several common data formats…that we can use with our files…and the first of those is CSV.…CSV is an abbreviation for comma-separated values…and it's frequently used when we want to export data…from databases or spreadsheets…and be able to import it somewhere else.…It's a good file interchange format.…The way that a line in a CSV file would look is…that you have a number of values…that are separated by commas.…Here you can see I've got someone's name,…their street address, their city, and their state.…
That's four values and each one of them is separated…by a comma.…That makes it easy to go back in parts…and be able to figure out each of those values again…when we import it.…This is one line in a CSV file.…Presumably in a file there'd be multiple lines,…one per person, and they would all have the same number…of values all in the same order.…Ruby has the ability to work with CSV files…with part of the Ruby Standard Library.…That means the code for CSV files isn't loaded by default,…
- 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.