Last active
August 29, 2015 14:23
-
-
Save NrI3/705607cd64ea33b6ed17 to your computer and use it in GitHub Desktop.
[ Java ] Lee un archivo linea a linea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void readFileLineByLine(String fileName){ | |
try{ | |
FileReader reader = new FileReader(fileName); | |
BufferedReader buffer = new BufferedReader(file); | |
String line; | |
while ( (line = buffer.readLine()) != null ){ | |
show(line); | |
} | |
buffer.close(); | |
}catch(Exception e){ | |
} | |
} | |
private static void show(String line){ | |
System.out.println(line); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment