I am getting my browse file location from withing the system , so the generated string path is as
String path = "C:\Documents and Settings\abcd\Desktop\d.txt";
My input is coming from browse button , so input file path is dynamic. I need to Replacing backward slash '\' to foward slash '/' , so that i could use the path further in my coding . I need to do this dynamically . Can anybody tell me how.
My desired output is
C:/Documents and Settings/abcd/Desktop/d.txt
Thanks in advance.
Correct Answer ---
Following is the correct answer for the above mentioned question --- String newPath = path.replaceAll("\\", "/");