How to get the filename from a directory path. Their is only one file in the director
I see code for listing all the files present in a directory.
I my directory path, Their is only one file, how to get the file name from the path and read the file, (Please tell me how to get the name of the only file in the directory?)
by checking if it is readable ( I know this part).
Re: How to get the filename from a directory path. Their is only one file in the dire
Here's the File API.
This has all the methods for getting a List<File> for a directory, and the name of a file.