I think what you can do to get the filename out of filepath is, treat filepath as
string and get the index of last occurence of "/" in the filepath and substring the filename from that index value till the end of the filepath.
For example:
String filepath = "c:/documents and setting/desktop/cdss/file1.txt"
Here in this case filename is file1.txt. To get this what we can do is
int idx = filepath.lastIndexOf("/");
String filename = filepath.substring(idx+1);
This will give "file1.txt" in filename.
Hope this helps.
Anna
[ March 03, 2005: Message edited by: anna pillutla ]