1.设定输入流的源文件入口 例如:FileInputStream(文件名)指向文件的输入流
2.创建通道
3.通过流读取数据 int read()读取文件,到达文件末尾返回值为-1,按顺序继续往下读
4.关闭通道 int close();
例子:try{ FileInputStream in=new FileInputStream("hello.txt");
}
catch(IOException e) {