import java.io.File; import java.io.FileFilter; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.FileWriter; import java.io.PrintWriter; /** * Popis tridy FileDemo * neco * */ public class FileDemo { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String radek = br.readLine(); int i = Integer.parseInt(radek); PrintWriter out = new PrintWriter(new FileWriter("out.txt")); out.println(i); out.close(); } public static void dir(File d) { FileFilter ff = new FileFilter() { public boolean accept(File f) { return f.isFile(); } }; File[] soubory = d.listFiles(ff); for(int i = 0; i < soubory.length; i++) { System.out.println(soubory[i].getAbsolutePath()); } } }