Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.FileInputStream;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class LeCampos {
- public static void main(String[] args) throws IOException {
- BufferedReader br = new BufferedReader(
- new InputStreamReader(
- new FileInputStream("in_tab.txt")));
- System.out.print ("A magica do arquivo txt -> ");
- String s = br.readLine();
- while (s != null) {
- System.out.println(s);
- s = br.readLine();
- }
- br.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement