InputStream is = new FileInputStream("D://123.txt"); int i = 0; while( (i = is.read())!= -1){ System.out.print((char)i); }得到的char一个一个接起来就是string 了