java文件读取 while ((len = reader.read(buffer)) != -1){}的理解
源文件InputStreamReaderreader=newInputStreamReader(newFileInputStream(file),"UTF-8");//读入缓冲区char[]buffer=newchar[1024];//读入结果StringBufferresult=newStringBuffer();//每次读入缓冲区的长度intlen;//从读入流中读取文件内容并形成结果whil