字节流InputStream和OutputStream的子类:FileInputStream 和FileOutputStream方法:int read(byte[] b,int off,int len);void write(byte[] b,int off,int len);字符流Reader和W... Read More
posted @ 2014-05-24 15:48 tinyphp Views(311) Comments(0) Diggs(0)
import java.io.*;class Test{ public static void main(String args[]){ FileInputStream fin =null; FileOutputStream fout = null; ... Read More
posted @ 2014-05-24 11:43 tinyphp Views(1170) Comments(0) Diggs(0)
I/O是input/output的缩写,即输入输出端口。从 文件、键盘、网络 等输入到java程序,再从java程序输出到 文件、显示器、网络等分类:1、输入流 和 输出流2、字节流 和 字符流3、节点流 和 处理流核心方法:read、write字节流例子:文件读取//导入io包import jav... Read More
posted @ 2014-05-24 11:42 tinyphp Views(700) Comments(0) Diggs(0)