码迷,mamicode.com
首页 > 其他好文 > 详细

IO编程__文件对象

时间:2017-10-06 23:13:55      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:bsp   highlight   gen   对象   ati   int   abs   method   tab   

一、代码如下

package www.tainiu.wenjian;

import java.io.File;

public class aa__FileDuiXiang {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		File f= new File("d:\\Test.txt");
		
		System.out.println(f.getAbsolutePath());
		System.out.println(f.length());

	}

}

 

IO编程__文件对象

标签:bsp   highlight   gen   对象   ati   int   abs   method   tab   

原文地址:http://www.cnblogs.com/wujianbo123/p/7633110.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!