C++ 文件操作
文件輸出:
std::ofstream?ofile("fileName");
追加到現(xiàn)有文件:
std::ofstream?ofile("fileName",std::ios::app);
open() put() tellp() close()
std::ofstream?ofile;
ofile.open("fileName",std::ios::binary);

if(!ofile.fail())
{
????ofile.put(65);
}
ofile.close();

追加到現(xiàn)有文件:

open() put() tellp() close()








posted on 2006-12-23 10:45 ChenGen 閱讀(317) 評論(0) 編輯 收藏 所屬分類: C++