Re: File
- From: Eric Sosman <esosman@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 16:42:53 -0400
Ravi wrote:
import java.io.File;
class FileDemo {
public static void main(String args[]) {
File f1 = new File("/home/ravi/abc");
System.out.println("Path: "+f1.getPath());
System.out.println("Absolute path:
"+f1.getAbsolutePath());
System.out.println("Size: "+f1.length());
System.out.println("getFreeSpace:
"+f1.getFreeSpace());
System.out.println("getTotalSpace:
"+f1.getTotalSpace());
System.out.println("getUsableSpace:
"+f1.getUsableSpace());
f1.deleteOnExit();
}
}
I use GNU/Linux and the problem is that the space reported by the thre
functions is not correct. Please explain.
What does it report, and why do you think it is wrong?
--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxx
.
- References:
- File
- From: Ravi
- File
- Prev by Date: Re: File
- Next by Date: Re: SOS PLEASE FRIENDS OF JAVA
- Previous by thread: Re: File
- Index(es):
Relevant Pages
|
|