file-io

Things regarding the input and output in a rials application.

Table of Contents

Importing CSV Files

Rails has a lot of support built on for handling CSV (both, in- and output), have a look at the CSV Class.

While importing CSV Files, the most memory-efficient method is to use CSV.foreach(), which reads the file line per line (see this article for more information about the performance of importing CSV files).

Last updated