Thread: Files
View Single Post
Old 12-15-2004, 03:14 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,174
Belisarius is on a distinguished road
To some extent, you can't. "C:" is a uniquely Windows concept. If you're working with relative files, however (where you aren't giving an absolute path), you can use "File.separator" to get the proper seperator character for the given operating system. So, if you're on a Unix machine, you would get "/", whereas on Windows you're get "\\".
__________________
GitS
Belisarius is offline   Reply With Quote