--- foo.csv ---
"aaa,aaa","aaa","aaa"
"bbb","bbb,bbb","bbb"
"ccc","ccccccc","c,c"
--- ---
Booで読んでみた
--- foo.boo ---
- import System
- import Microsoft.VisualBasic.FileIO
- p = TextFieldParser("foo.csv")
- p.TextFieldType = FieldType.Delimited
- p.SetDelimiters(",")
- while (not p.EndOfData):
- r = p.ReadFields()
- for i in r:
- print i
--- 結果 ---
aaa,aaa
aaa
aaa
bbb
bbb,bbb
bbb
ccc
ccccccc
c,c
--- ---
楽チン過ぎてちょっとカルチャーショック!!