Hi Chandrabhan,
File directory path is separated by '/' usually. '\' is treated as escape character. Below code could be useful.
String code = ourSourcePath.substring(ourSourcePath.lastIndexof("/") + 1));
return code;
Regards,
Soumyadip
Hi Chandrabhan,
File directory path is separated by '/' usually. '\' is treated as escape character. Below code could be useful.