首页 > 编程 > Java > 正文

Java-基础 文件操作IO 在指定目录中创建文件

2019-11-11 01:15:09
字体:
来源:转载
供稿:网友
 public static void main(String[] args) throws Exception {            File file = null;            File dir = new File("C:/");            file = File.createTempFile            ("javaLc", ".javaLc", dir);            System.out.PRintln(file.getPath());        }
上一篇:反射java学习笔记

下一篇:java集合梳理

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表