编程语言
首页 > 编程语言> > 字节流(面对程序)

字节流(面对程序)

作者:互联网

//OutputStream 写

//文本当中

FileOutputStream fos = new FileOutputStream("路径");

fos.writer("hello".getBytes());//如输入字符,得转字节码

//BufferedOutputStream

BufferedOutputStream bos = new BufferedOutputSteam(fos);

bos.write("xxx".getBytes());

InputStream 读

标签:字节,fos,bos,程序,面对,FileOutputStream,BufferedOutputStream,new,getBytes
来源: https://www.cnblogs.com/Wsq-1210/p/15727749.html