摘要:
importjava.io.File;importjava.io.RandomAccessFile;publicclassSplitFile {publicstaticvoidmain(String[] args)throwsException {File src =newFile("D:/java... 阅读全文
摘要:
阅读全文
摘要:
publicclassSerializable_ {publicstaticvoidmain(String[] args)throwsException {write("D:/javac/10.txt");//序列化read("D:/javac/10.txt");//反序列化}publicstati... 阅读全文
摘要:
阅读全文
摘要:
PrintStream ps; try { ps = new PrintStream("D:\\role.txt"); System.setOut(ps); } catch (FileNotFoundException e) { e.printStackTrace(); } 阅读全文
摘要:
//文件拷贝----------------------------------------------------------------------------public void copyFile(File src_, File dest_) {File src = src_;//源文件Fi... 阅读全文