摘要: 对象流 序列化 public static void main(String[] args) throws Exception { //序列化后,保存的文件格式,不是存文本,而是按照他的格式来保存 String filePath = "e:\\data.dat"; ObjectOutputStrea 阅读全文
posted @ 2022-03-30 20:20 磕伴 阅读(104) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { //System 类 的 public final static InputStream in = null; // System.in 编译类型 InputStream // System.in 运行类型 Buffe 阅读全文
posted @ 2022-03-30 20:20 磕伴 阅读(60) 评论(0) 推荐(0)
摘要: 创建方法(3种) public class FileCreate { public static void main(String[] args) { } //方式1 new File(String pathname) @Test public void create01() { String fi 阅读全文
posted @ 2022-03-30 20:19 磕伴 阅读(352) 评论(0) 推荐(0)