Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AppEntrada {
- public static void main(String[] args) throws IOException {
- InputStream is = new FileInputStream("arquivo.txt");
- InputStreamReader isr = new InputStreamReader(is);
- BufferedReader br = new BufferedReader(isr);
- String s = br.readLine(); // primeira linha
- while (s != null) {
- System.out.println(s);
- s = br.readLine();
- }
- br.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement