to return the name of the file. This works fine on windows platform, but on unix it returns the absolute path. Is there any other way to get the file name which works both on windows and unix ?
Hari haran Ravi
Joined: Aug 11, 2010
Hi Jigar, If it returns an absolute path, process it using String Manipulations and then get the file name out of it..
I will give you an idea. In an absolute path the filename will start after the last slash in the absolute path. So find the index of the last slash using the lastIndexOf function and then use substring function to return the file name.