IO经典代码

import java.io.*;

public class A {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File("d:/1.txt"))));
		String str = null;
		while ((str = br.readLine()) != null) {
			System.out.println(str);//针对这个字符串我能够作不少的事
		}
	}
}
相关文章
相关标签/搜索