Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Leitor {
- public static void main(String[] args) throws IOException, ClassNotFoundException {
- File fl = new File
- /**
- OutputStream is = new FileOutputStream("listinha_contatinhos_2017.txt");
- OutputStreamWriter oaw = new OutputStreamWriter(is);
- BufferedWriter oab = new BufferedWriter(oaw);
- oab.write("Thulio\n");
- oab.write("Dollytos\n");
- oab.write("Olivernhonho\n");
- oab.write("Cabrita\n");
- oab.close();
- InputStream clei= new FileInputStream("listinha_contatinhos_2017.txt");
- InputStreamReader ton = new InputStreamReader(clei);
- BufferedReader hue = new BufferedReader(ton);
- String s = hue.readLine();
- while(s != null) {
- System.out.println(s);
- s = hue.readLine();
- }
- **/
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement