Just look up how to use stuff like File file = new File(directory);
and if(file.exists()) etc.
Code:public static boolean cacheExists() { File file = new File(signlink.findcachedir() + "main_file_cache.dat"); if(file.exists()) return true; else return false; }