public class TestaEntrada {
public static void main(String[] args) throws IOException
{
InputStream i = new FileInputStream("arquivo.txt");
InputStreamReader isr = new InputStreamReader(i);
BufferedReader br = new BufferedReader(isr);
String texto = br.readLine();
while (texto != null) {
System.out.println(texto);
texto = br.readLine();
}
br.close();
}
}