文件读取?
文件读取的代码怎么写啊 谢谢了

多年以后我就会很老了 腰间那柄玄铁剑也换成了木剑 我拖着它浪迹天涯 我一生打败了无数江湖豪客 然而 却打不败逝者如斯的时光和对你无尽的思念
[CODE]/*
* Test.java
*
* Created on 2006年12月26日, 下午4:32
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package testReadFile;
/**
*
* @author lbf
*/
import java.io.*;
public class Test {
/** Creates a new instance of Test */
public Test() {
}
public static void main(String[] args) throws Exception{
BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream("xxx.txt")));
String text="";
while((text=br.readLine())!=null){
System.out.println(text);
}
}
}[/CODE]
一个相当简单的,把文本内容打印出来的