OK, and your question is?
BTW: there is this part of the API that deals with String... take a look, it may have your answers there... google "Java String API"
hariharan jayaprakash wrote:
I have a requirement like this
String filepath = "P:\\Folder1\\Folder2\\Folder3\\Folder4\\Folder5\\Folder6\\File.txt"
String filebase = "P:/Folder1/Folder2/Folder3/";
I want the result string should be filebase = "P:/Folder1/Folder2/Folder3/Folder4/Folder5/Folder6"