import java.io.*; public class Test { public static void main (String args[]) { // get the file.txt file File file=new File("file.txt"); if (file.exists() && !file.isDirectory()) { System.out.println("Datei "+file.getName()+" gefunden"); System.out.println("Voller Name: "+file.getAbsolutePath()); } // get all text files File dir=new File("."); String[] list=dir.list(); for (int i=0; i