This content has been marked as final. Show 2 replies
In Java, you escape the backslash by using two backslashes:
However, you should not hard-code the file separater as it could be different on different platforms.
String s = "\\test";
You can use File.separator:
Edited by: jbish on Apr 8, 2008 6:31 PM
Should be File.separator