摘要: 在这个之前我需要备注一下,关于不覆盖以前内容的文件写入实现:byte bytes[] = new byte[512]; bytes = fileContent.getBytes(); RandomAccessFile raf = new RandomAccessFile(filePath, "rw"); raf.seek(raf.length());//标注下一次写入点 raf.write(bytes); raf.write("\n".getBytes()); raf.close();一下便是正文:importjava.io.*;public class 阅读全文
posted @ 2011-02-23 15:15 杨超路飞 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 在这个之前我需要备注一下,关于不覆盖以前内容的文件写入实现:byte bytes[] = new byte[512]; bytes = fileContent.getBytes(); RandomAccessFile raf = new RandomAccessFile(filePath, "rw"); raf.seek(raf.length());//标注下一次写入点 raf.write(bytes); raf.write("/n".getBytes()); raf.close();一下便是正文:importjava.io.*;public class 阅读全文
posted @ 2011-02-23 15:15 杨超路飞 阅读(214) 评论(0) 推荐(0) 编辑