ChenGen

          一切歸零,重新開始
          隨筆 - 13, 文章 - 10, 評論 - 21, 引用 - 0
          數(shù)據(jù)加載中……

          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();

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


          只有注冊用戶登錄后才能發(fā)表評論。


          網站導航:
           
          主站蜘蛛池模板: 潞城市| 和硕县| 冀州市| 鹤岗市| 澄迈县| 汉沽区| 乌拉特后旗| 建平县| 浮梁县| 晋宁县| 门头沟区| 武川县| 西乌珠穆沁旗| 松阳县| 新巴尔虎右旗| 汾西县| 西乡县| 张家界市| 漳州市| 南投县| 通城县| 新乐市| 连平县| 樟树市| 嘉黎县| 定兴县| 蓬溪县| 探索| 吉林市| 孟津县| 石阡县| 武清区| 台北县| 探索| 镇宁| 舟曲县| 城固县| 郴州市| 乐平市| 吉木乃县| 始兴县|