licheng700

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            26 Posts :: 5 Stories :: 5 Comments :: 1 Trackbacks
          1。追加文件方法
                    1.java.io.FileWriter 的構造函數中:FileWriter(File file, boolean append)
                    Constructs a FileWriter object given a File object.
          append - if true, then bytes will be written to the end of the file rather than the beginning

                   2.類java.io.RandomAccessFile extends Object implements DataOutput, DataInput 中方法
                        seek(long pos)將當前操作指針移到文件末尾。
          2.關于隔行寫入文件java.io.BufferedWriter類中的方法newLine()



          posted on 2005-09-27 14:00 小海船 閱讀(1192) 評論(1)  編輯  收藏

          評論

          # re: 關于Java中文件流操作的一點知識 2009-06-23 16:31 s
          d
          s
          s
          s
          s
          s
          s
          s
          s
          s
          s
          s
          s
          s
          s









































          sssssssssssssssssss



          s

          s
          s
          s
          s

          s
          s
          s
          s
          ss
          s
          s
          s
          s
          s
          s
          s
          s

          s
          s
          s  回復  更多評論
            


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


          網站導航:
           
          主站蜘蛛池模板: 张家界市| 浮山县| 郸城县| 广宁县| 聊城市| 乌鲁木齐县| 肇州县| 江孜县| 彰武县| 丽水市| 江源县| 伊金霍洛旗| 加查县| 锦屏县| 富宁县| 黔江区| 日照市| 获嘉县| 上饶市| 嘉定区| 霍城县| 吉木萨尔县| 庆城县| 偃师市| 威海市| 商南县| 鹤壁市| 中江县| 故城县| 汉寿县| 银川市| 蚌埠市| 华宁县| 新乐市| 潜山县| 蒙城县| 额济纳旗| 利津县| 溧阳市| 宝山区| 关岭|