Windows file paths
807569Sep 11 2006 — edited Sep 11 2006Hi All,
As I have tried a few times, the windows file path separator (\) character is not directly compatible with the way java works.
So if I have to create
File file = new File("C:\temp");
the file won't work, I need to append the escape sequence \ also like,
File file = new File("C:\\temp");
What I wanted to know is there any java utility classes provided by JDK to convert this kind of file path to directly File objects?
Please suggest.
Regards
Ayusman