|
is there such a thing as a platform independent path delimiter? I would use \ but that's not Posix and / isn't Windows.
Thanks
|
|
|
As long as you are working within java you can use the forward slash. If reading/writing to the hard drive you can use the System "getProperty" method to get the platform-dependent tokens for line and path separators
int newline = System.getProperty("line.separator")
|
|
and use it in your code.
|
|
|
Well the intention is to check if a path name read from a jar file or a zip file has path delimiters
|
|
|
|
|
|
|
// |