Head First C# 中文版 第九章 读写文件 page387
来源:互联网 发布:就只有淘宝网打不开 编辑:程序博客网 时间:2024/04/29 17:48
不同的流读写不同的数据
每一种流都是抽象类Stream的子类,很多内建类可以做不同的事情。这一章我们将会专注于读写普通文件,但是你在这一章学到的东西也可以很简单的应用于压缩文件或者加密文件,或者不使用文件的网络流也可以。
你可以用流做的事情:
①向流中写入
你可以通过流的Write()方法来向其中写入文本或者二进制数据。
②从流中读取
你可以通过Read()方法从文件中、网络上、内存中或者任何使用流的地方读取数据。
③改变在流中的位置
大多数的流都支持Seek()方法,你可以通过使用它来找到流中某个位置,这样你可以在某特定位置插入数据。
流让你可以读写数据。要使用和你操作的数据类型对应的流。
- Head First C# 中文版 第九章 读写文件 page387
- Head First C# 中文版 第九章 读写文件 page385
- Head First C# 中文版 第九章 读写文件 page386
- Head First C# 中文版 第九章 读写文件 page388
- Head First C# 中文版 第九章 读写文件 page389
- Head First C# 中文版 第九章 读写文件 page390
- Head First C# 中文版 第九章 读写文件 page391
- Head First C# 中文版 第九章 读写文件 page392
- Head First C# 中文版 第九章 读写文件 page393
- Head First C# 中文版 第九章 读写文件 page394
- Head First C# 中文版 第九章 读写文件 page395
- Head First C# 中文版 第九章 读写文件 page396
- Head First C# 中文版 第九章 读写文件 page397
- Head First C# 中文版 第九章 读写文件 page398
- Head First C# 中文版 第九章 读写文件 page399
- Head First C# 中文版 第九章 读写文件 page400
- Head First C# 中文版 第九章 读写文件 page401
- Head First C# 中文版 第九章 读写文件 page402
- 初级根文件系统的制作
- 关于分离线程的一种用法
- Qt4.4.3 在s3c2440平台的移植
- C++类对象创建过程(转帖)
- 解决制作根文件系统遇到的共享库查找问题
- Head First C# 中文版 第九章 读写文件 page387
- 标程: GDI 双缓冲技术
- MySQL数据库C API(1)
- 构建基本的嵌入式Linux根文件系统
- ubuntu 8.10下建立Qt/Embedded 4.5开发环境
- 上各月顶组长几句话
- 安装了Ubuntu 9.04
- NetBeans 时事通讯(刊号 # 54 - May 01, 2009 )
- 从文档中抽取文本,实现 Word, Excel, PowerPoint 文件的全文搜索