摘要:
package io01; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; public class Dir6 { public st 阅读全文
posted @ 2021-01-20 20:49
谷先生
阅读(58)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) throws IOException { String path = "D:/Bin";//选择文件 File f =new File(path);//赋值为文件 Date d= new Date(f.lastModifi 阅读全文
posted @ 2021-01-20 19:58
谷先生
阅读(143)
评论(0)
推荐(0)
摘要:
//建立文件夹 File f=new File("user"); System.out.println(f.createNewFile()); //建立文件 File wj = new File("user.txt"); File wj2=new File(".","user2.txt"); Sys 阅读全文
posted @ 2021-01-20 19:08
谷先生
阅读(85)
评论(0)
推荐(0)
摘要:
package io01; import java.io.File; public class Dir1 { public static void main(String[] args){ //判断目录是否存在//建立目录 File f =new File("user"); if (f.exists 阅读全文
posted @ 2021-01-20 15:52
谷先生
阅读(101)
评论(0)
推荐(0)
浙公网安备 33010602011771号