课后知识点回顾十一 File
来源:互联网 发布:颂党恩 知党史 促成长 编辑:程序博客网 时间:2024/06/07 03:44
File
public class Myfile {
public static void main(String[] args) {
// 设置路径
String path = "F:"+File.separator+"code"+File.separator+"ii.java";
//创建文件对象
File f = new File(path);
try { //新建文件(还有删除登其他方法)
f.createNewFile();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
public class Myfile {
public static void main(String[] args) {
// 设置路径
String path = "F:"+File.separator+"code"+File.separator+"ii.java";
//创建文件对象
File f = new File(path);
try { //新建文件(还有删除登其他方法)
f.createNewFile();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
0 0
- 课后知识点回顾十一 File
- 知识点课后回顾1
- 知识点课后回顾2
- 课后知识点回顾四 异常
- 课后知识点回顾五 线程
- 课后知识点回顾八 泛型
- 课后知识点回顾十二 流
- 课后知识点回顾十三 反射
- 课后知识点回顾七 日期的格式
- 课后知识点回顾九 集合1
- 课后知识点回顾十 集合2
- 课后知识点回顾十四 网络编程1
- 课后知识点回顾十五 网络编程2
- Android-应用开发-新特性和知识点回顾(十一)
- 知识点回顾
- 知识点回顾
- 知识点回顾
- 知识点回顾
- Linux系统性能分析——内存
- Markdown语法剖析(一)
- 用链表实现通讯录编程
- 多个Activity启动问题
- JavaWebdHttp协议之表头
- 课后知识点回顾十一 File
- 11月13日——离noip还有6天【今天”认真“总结】
- 函数栈帧
- 正则表达式全部符号解释
- PCB设计技巧一百问
- BZOJ2299: [HAOI2011]向量
- sdut 数字三角形问题
- struts2笔记_day03
- 常用操作技巧总结