import java.io.*;

public class abrirtexto {

public static void main(String[] args){

try{


//Definimos fichero.txt modo lectura

FileReader fr = new FileReader("fichero.txt");
BufferedReader br = new BufferedReader(fr);

String texto = "", linea = "";

//Valor null indica final del archivo


while ((linea = br.readLine()) != null)
texto+= linea + "\n";

br.close();
fr.close();

System.out.println(texto);

}

catch(Exception e){}

}

}