文件的读写问题 怎样在原来文件的基础上写入文件,比如说:A.txt中本来有, abcdef,现在要加入ghi,变成,abcdefghi应该怎么做. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 try { File f = new File("filename"); RandomAccessFile raf = new RandomAccessFile(f, "rw"); // Read a character char ch = raf.readChar(); // Seek to end of file raf.seek(f.length()); // Append to the end raf.writeChars("aString"); raf.close(); } catch (IOException e) { } 怎么实现两个list表的复制 String简单问题 400元求助 要打包发布java程序了,遇到了问题 不知道哪里的毛病,关于WOW密保卡读取密保卡卡码的小程序~~~ 装载时为什么要生成java.lang.Class实例 请教如何将JB9和TOMCAT5整合? TableCellRenderer ,jtable请进。 帮忙看看是什么错误 JBuilder5的硬件要求??? 关于JAVA package的问题,求助位大侠!!! 关于C++通过JNI调Java方法的问题
File f = new File("filename");
RandomAccessFile raf = new RandomAccessFile(f, "rw");
// Read a character
char ch = raf.readChar();
// Seek to end of file
raf.seek(f.length());
// Append to the end
raf.writeChars("aString");
raf.close();
} catch (IOException e) {
}