package cn.itcast.p7.io.bytestream.demo;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class ByteStreamDemo {
public static void main(String[] args) throws IOException {
demo_read();
}
public static void demo_read() throws IOException {
FileInputStream fis = new FileInputStream("bytedemo.txt");
fis.close();
}
public static void demo_write() throws IOException {
FileOutputStream fos = new FileOutputStream("bytedemo.txt");
fos.write("abcdefg".getBytes());
fos.close();
}
}
我的微信号:xiang20200106 ,欢迎大家找我聊天
— 【 THE END 】—

本公众号已经整理一套包含前端和后端的全套电子书教程,限时免费赠送,请在公众号里回复「电子书」获取!