|
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 "\\".
|