Hacker News new | ask | show | jobs
by jared314 4801 days ago
It should be using the java.io.File.separator[0] constant for platform independence.

[0] http://docs.oracle.com/javase/6/docs/api/java/io/File.html#s...

1 comments

For future reference, just using slash ("/") will work for both Windows and Unix systems (linux and OSX)
Yes, Windows treats both "/" and "\" as separators. Just make sure you handle the edge cases.

http://stackoverflow.com/questions/4845866/java-on-windows-p...