*目次 [#d55b1a28]
#contents

*基本 [#xf3376b6]
csv.rbが標準添付されているのでそれを使う。

*全行読み込み [#s254dcfd]
CSV.readlinesを使う。
#pre{{
lines = CSV.readlines(filename)
lines.each do |line|
  p lines[0] # 最初の列
  p lines[1] # 次の列
end

}}

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS