SyntaxFix
Write A Post
Hire A Developer
Questions
It worked for me:
File file = new File(getApplicationContext().getFilesDir(),"whatever.txt"); if(file.exists()){ //Do something } else{ //Nothing }