摘要: 图片为二进制文件,采用字节流调取,实现图片的拷贝; package io; /** * file类的基本用法 */ import java.io.*; public class test { public static void main(String[] args) { FileInputStre 阅读全文
posted @ 2019-05-08 22:13 Hello_World2020 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 创建文件test2.txt public class test { public static void main(String[] args) { File f = new File("D:\\txt\\test2.txt"); if(!f.exists()){ //可以创建 try { f.cr 阅读全文
posted @ 2019-05-08 14:06 Hello_World2020 阅读(178) 评论(0) 推荐(0) 编辑