import java.io.*;
public class Main {
public static void main(String[] args) {
try {
FileInputStream fis = new FileInputStream("outstream");
InputStreamReader isr = new InputStreamReader(fis);
BufferedReader br = new BufferedReader(isr);
try {
do {
String str = br.readLine();
System.out.println(str);
} while (str != null);
}
finally {
fis.close();
isr.close();
br.close();
}
} catch(IOException e){
e.printStackTrace();
}
}
}
Login in to like
Login in to comment