String filepath = "D:\\啊哈哈哈7931\\story.txt"; FileReader fileReader=null; int data=0; try { fileReader = new FileReader(filepath); while ((data=fileReader.read())!=-1){ System.out.print((char)data); } } catch (Exception e) { e.printStackTrace(); } finally { if(fileReader!=null){ try { fileReader.close(); } catch (IOException e) { e.printStackTrace(); }