Advertisement
Manioc

hum

Mar 8th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1. import java.io.*;
  2.  
  3. public class Leitor {
  4.  
  5.     public static void main(String[] args) throws IOException, ClassNotFoundException {
  6.        
  7.         File fl = new File
  8.         /**
  9.             OutputStream is = new FileOutputStream("listinha_contatinhos_2017.txt");
  10.             OutputStreamWriter oaw = new OutputStreamWriter(is);
  11.             BufferedWriter oab = new BufferedWriter(oaw);
  12.            
  13.             oab.write("Thulio\n");
  14.             oab.write("Dollytos\n");
  15.             oab.write("Olivernhonho\n");
  16.             oab.write("Cabrita\n");
  17.            
  18.             oab.close();
  19.            
  20.             InputStream clei= new FileInputStream("listinha_contatinhos_2017.txt");
  21.             InputStreamReader ton = new InputStreamReader(clei);
  22.             BufferedReader hue = new BufferedReader(ton);
  23.            
  24.             String s = hue.readLine();
  25.             while(s != null) {
  26.                 System.out.println(s);
  27.                 s = hue.readLine();
  28.             }
  29.         **/
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement