Monday, 25 April 2016
How to check if a file exists ?
Check if a file exists
Example
File f = new File("c:\\shaan.txt");
if(f
.
exists()
)
System.out.println("File existed");
else
System.out.println("File not found!");
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.