输入流
InputStream(字节输入流)
常用方法
abstract int read()
int read(byte b[])
int read(byte b[], int off, int len)
int available()
void close()
输出流
OutputStream(字节输出流)
常用方法
abstract void write(int b)
void write(byte b[])
void write(byte b[], int off, int len)
void flush()
public class Inputtest {
public static void main(String[] args) throws IOException {
//输出流:,内存的内容输出到文件(与操作)入流:文件内容输入到内存中《读操作)
File f1=new File("d:/a.txt");
//创建一个输入流,读取f1这个文件
InputStream input= new FileInputStream(f1);
//读取文件的一个字符,然后把字符转换为对应的数字返回。如果读取到文件的末尾&#