Java Reference
In-Depth Information
pathnames that are valid for all platforms on which the application will run. For ex-
ample,insteadofhard-codingadrivespecifier(suchasC:)inapathname,usetheroots
that are returned from listRoots() . Even better, keep your pathnames relative to
the current user/working directory (returned from the user.dir system property).
Afterobtaininga File object,youcaninterrogateittolearnaboutitsstoredabstract
pathname by calling the methods that are described in Table 8-1 .
 
Search WWH ::




Custom Search