File I/O
来源:互联网 发布:wpx软件是什么 编辑:程序博客网 时间:2024/06/15 14:02
1.创建一个FIle对象的语法格式:
File file=new File(String pathName);
如:File file=new File("C\\test.txt");或File file=new File("C/test.txt");
2.File类的常用方法::
方法名称说明boolean exits()判断文件或目录是否存在boolean isFile()判断是否是目录boolean isDirectory)判断是否是文件String getPath()返回此对象表示的文件的相对路径名String getAbsolutePath()返回此对象表示的文件的绝对路径名String getName()返回此对象表示的文件,目录的名称boolean delete()删除此对象指定的文件或目录boolean createNewFile()创建名称的空文件夹,不创建文件夹long length()返回文件夹的长度,单位为字节,若文件不存在,则返回0L
0 0
- linux file I/O
- Linux file I/O
- C++ File I/O
- FILE I/O
- Multithreaded File I/O
- FILE I/O
- Python File I/O
- I/O 1.0 File
- File I/O
- C++ File I/O
- I/O----File类
- Python File I/O
- Perl - File I/O
- 3-File I\O
- Python File I/O
- 【JAVA】File I/O
- FILE I/O 错误
- File I/O
- Android OKHttp https java.io.IOException: Hostname was not verified 问题解决
- Redhat使用yum
- DB2 执行Sql 语句中时的with ur
- bzoj1560 [JSOI2009]火星藏宝图
- python pip install 失败原因之ProxyError('Cannot connect to proxy.
- File I/O
- 今天有点喜出望外--关于lvs
- 将H264码流打包成RTP包
- 游戏编程中的人工智能(Python改编)
- 读取ini文件
- android (神TM)存储与读取
- UITableViewCell嵌套UIWebView
- Sublime text 3 软件使用介绍及常用插件
- Mac多Python版本共存,多个独立Python开发环境切换。