Could you give me an example on how I can change my code to reflect what you have said?
Because using the function pathseperator I can replace the "\" making the path of the file neater but how would this help then when it comes to specifiying a UNIX path?
Hope you can help
regards
Pungwick
Main Topics
Browse All Topics





by: marklorenzPosted on 2007-06-04 at 07:42:24ID: 19208884
You should not be hardcoding slashes in paths - they are different between Windows and Unix. Instead, you should use:
eparator") ; eparator") ;
avaworld/j w-10-1998/ apptowin32 / UserInfoA pplet.java
String pathSeparator = System.getProperty("path.s
String fileSeparator = System.getProperty("file.s
See how these are used here:
http://www.javaworld.com/j
Mark