io流创建空文件

1 public class FileDemo01 {
2     public static void main(String[] args) throws IOException {
3         File file=new File("D:/guoguo/jiang.txt");
4         Boolean mkdir=file.createNewFile();
5         System.out.println(mkdir);
6     }
7 }

 

 

 

posted on 2022-08-25 01:57  大风吹过12138  阅读(31)  评论(0)    收藏  举报

导航