3 ms·
For future reference, just using slash ("/") will work for both Windows and Unix systems (linux and OSX)
by madsravn 13y ago
For future reference, just using slash ("/") will work for both Windows and Unix systems (linux and OSX)
- jared314 13y agoYes, Windows treats both "/" and "\" as separators. Just make sure you handle the edge cases. http://stackoverflow.com/questions/4845866/java-on-windows-prevent-slash-in-file-name-from-acting-as-a-seperator http://stackoverflow.com/questions/4845866/java-on-windows-p...