The following code 'll return boolean values,true if the file/directory is present,false if the file/directory is not present.
- if (!file.exists()){
- return false;
- }
- else {
- return true;
- }
- }
No comments:
Post a Comment