sunda2010
asked on
how to change file path d:\test.txt to d:\\test.txt
i am getting error for file path
Change that to - "d:/test.txt" easiest.
try this
path.replaceAll("\","\\");
path.replaceAll("\","\\");
@jalpa_144: path.replaceAll("\","\\"); will give compilation error
If you are using an IDE just do a replace - ':\' with ':/'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.rgagnon.com/javadetails/java-0476.html