※ 引述《SwallowMoon.bbs@bbs.ee.ndhu.edu.tw (柳.心戀)》之銘言:
> ※ 引述《journeyman@kkcity.com.tw (⊙◎炭坑冗談會㊣)》之銘言:
> > scanf()是formatted input
> > 你要用那些unformatted input的函數
> > 例如fgets(), fgetc()這些
> > 詳情參考 http://www.cplusplus.com/ref/cstdio/
> 使用 fscanf 和 fgetc 很像不是問題所在的樣子
> 重點的差異似乎是在 fopen 時要使用二進位模式
> 我實際測試是這樣 ... 有錯的話再請指正
我都用 open() close() read() write()
一般純文字的換行都會是 2 bytes : 0x0D 0x0A
--
我拍的照片 http://myweb.hinet.net/home6/a54236/data/index.htm
god = 神, child = 童, godchild = 神童.
--
※ Origin: 交大資工鳳凰城資訊站 <bbs.csie.nctu.edu.tw>
◆ From: 203.75.155.16