Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name, Email, Course, Year
- John Doe, john@example.com, SoC, 2010
- Tom Jones, tom@example.com, SoC, 2009
- Victor Sandles, victor@example.com, Java, 2010
- require 'csv-mapper'
- include CsvMapper
- results = import('/path/to/file.csv') do
- start_at_row 1
- [full_name, email, course, year]
- end
Add Comment
Please, Sign In to add comment