これでも見れ勉強しとけ
http://www.yoshibaworks.com/ayacy/inasoft/lv2csv/lvcsvcom/chapter1.html