流
来源:互联网 发布:apache文件服务器搭建 编辑:程序博客网 时间:2024/04/30 09:47
package testIO;import java.io.*;public class testIO {public static void main(String[] args) throws Exception{FileReader fr = new FileReader("C:\\Users\\宝宝天龙\\Desktop\\java\\lesson46.txt");int ch;ch = fr.read();while (ch !=-1){System.out.printf("%c", (char)ch);ch = fr.read();}fr.close();System.exit(0);}}
流的操作:
流的分类:
文件流,缓冲流等等
未完待续。。。
0 0