字节输入和字符输入
import java.io.*;
public class FileIntputStreams {
//这是字节输出流
public String load(String pathName) throws IOException {
//创建缓存区
byte[] bytes = new byte[1024];
StringBuilder builder = new StringBuilder();
//记录被读取的个数
int n = 0;
InputStream inputStream = null;
//创建文件读入流
inputStream = new FileInputStream(pathName);
//循环读入,当没有内容(n==-1)时退出
while