在同一个包下
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new FileReader("src\\com\\network\\test\\a.txt"));
String line = null;
while((line=br.readLine())!=null)
{
System.out.println(line);
}
br.close();
} |