Read file

File archivo = null; FileReader fr = null; BufferedReader br = null; archivo = new File ("./conf.txt"); fr = new FileReader (archivo); br = new BufferedReader(fr); String linea=null; while (linea=br.readLine())!=null) System.out.println(linea); fr.close(); br.close();
Read a file from beginnig til end

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.