Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String leerTxt(String direccion){ //direccion del archivo
- String texto = "";
- try{
- BufferedReader bf = new BufferedReader(new FileReader(direccion));
- String temp = "";
- String bfRead;
- while((bfRead = bf.readLine()) != null){
- //haz el ciclo, mientras bfRead tiene datos
- temp = temp + "n" + bfRead; //guardado el texto del archivo
- }
- texto = temp;
Add Comment
Please, Sign In to add comment