you can create a new instance of filereaderlikeFileReader fr = new FileReader(..............) //complete syntaxsee book/and then use the command ifFile f1 = new File("ex.test");if f1.exists();