ChenGen

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

          C++ 文件操作

          文件輸出:
          std::ofstream?ofile("fileName");

          追加到現有文件:
          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 閱讀(321) 評論(0)  編輯  收藏 所屬分類: C++


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


          網站導航:
           
          主站蜘蛛池模板: 永年县| 长治市| 湖南省| 商都县| 武平县| 堆龙德庆县| 布尔津县| 剑阁县| 黎城县| 赣榆县| 河南省| 垣曲县| 新乐市| 方正县| 鄂托克前旗| 伊春市| 新河县| 塔城市| 达孜县| 赤壁市| 恩施市| 屯留县| 隆安县| 巴彦淖尔市| 偏关县| 临夏市| 仙游县| 体育| 宝丰县| 辽阳县| 鹤峰县| 祁连县| 延津县| 文山县| 吴桥县| 临江市| 东明县| 姚安县| 宝鸡市| 策勒县| 横山县|