File class defines platform independent interface
public static final char separatorChar pathname is absolute if it starts with a separator character
public static final String separator / = Unix \ = Windows : = Mac
public static final char pathSeparatorChar : = Unix ; = Windows e.g. c:\book;c:\windows;
public static final String pathSeparator
Contructors
File(String pathname)which cannot be changed once file object is created, empty string mean current directory
e.g.
File f1 = new File(File.separator+"book"+File.separator+"ch1");
/book/ch1 --absolute path
File f2 = new File book"+File.separator+"ch1");
book/ch1 ---relative path
And check my web site for certifcation documents
at
http://www.geocities.com/korayguclu/