輸入
view plainprint?
package com
import java
import java
import java
import java
public class MainBench {
public static void main(String[] args) throws IOException {
MyStream stream = new MyStream(
}
}
class MyStream {
public MyStream(String pathName) throws IOException {
BufferedReader br = new BufferedReader(new FileReader(new File(pathName)));
String line = br
while (line != null) {
System
line = br
}
br
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26523.html