ruby ファイル入出力

f = open('data.csv')
while line=f.gets
	line = line.chomp
	sep = line.split(',')
	p sep
end
f.close