输入就是Input(I)
view plainprint?
package comsinosupermandriver;
import javaioBufferedReader;
import javaioFile;
import javaioFileReader;
import javaioIOException;
public class MainBench {
public static void main(String[] args) throws IOException {
MyStream stream = new MyStream(temp/testtxt);
}
}
class MyStream {
public MyStream(String pathName) throws IOException {
BufferedReader br = new BufferedReader(new FileReader(new File(pathName)));
String line = brreadLine();
while (line != null) {
Systemoutprintln(line);
line = brreadLine();
}
brclose();
}
}