摘要: 输入流 字符流(记事本能打开的文本文件) 字节流(万能流) InputStream 构造方法 FileInputStream(file) 与FileOutputStream的构造方法基本一致 同样在调用这个时需要注意close方法释放资源和异常处理。 read()方法读取数据,这里用到String( 阅读全文
posted @ 2020-09-16 21:41 ZeroDuck 阅读(232) 评论(0) 推荐(0)
摘要: File 构造方法 File(String path) File(File parent, String child) 父文件路径, File(String parent, String path) 父文件路径的字符串 常用方法 createNewFile() : 创建文件 mkdir() :创建单 阅读全文
posted @ 2020-09-16 20:38 ZeroDuck 阅读(205) 评论(0) 推荐(0)