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);//針對這個字符串我能夠作不少的事 } } }