ファイル操作には
fopen,fclose, fscanf, fgets, fread, fwrite
があります.
fopen("~.csv","*")の*には
詳しくは↓
http://www.matx.org/REFS/node76.htm#man_fprintf