好吧,先上图:
这里是TextReder类官方的解释:(http://msdn.microsoft.com/zh-cn/library/system.io.textreader.aspx)
Peek and Read methods to make a useful instance of TextReader. '>这里是Stream类官方的解释:(http://msdn.microsoft.com/zh-cn/library/system.io.stream.aspx)
Peek and Read methods to make a useful instance of TextReader. '>我们要使用的FileStream和StreamReader这两个类。那好,我们再来看看他们MSDN是怎么描述这个类的吧!
Peek and Read methods to make a useful instance of TextReader. '>首先来看看FileStream(http://msdn.microsoft.com/zh-cn/library/system.io.filestream.aspx)类在MSDN上的描述如下:
FileStream class to read from, write to, open, and close files on a file system, as well as to manipulate other file-related operating system handles including pipes, standard input, and standard output.'>使用 FileStream 类对文件系统上的文件进行读取、写入、打开和关闭操作,并对其他与文件相关的操作系统句柄进行操作,如管道、标准输入和标准输出。 可以指定读写操作是同步还是异步。 FileStream buffers input and output for better performance.'>FileStream 缓冲输入和输出以获得更好的性能。--部分内容以删简
FileStream buffers input and output for better performance.'>再来看看StreamReader(http://msdn.microsoft.com/zh-cn/library/system.io.streamreader.aspx)类在MSDN上的描述如下:
StreamReader is designed for character input in a particular encoding, whereas the Stream class is designed for byte input and output.'>StreamReader 旨在以一种特定的编码输入字符,而 Stream 类用于字节的输入和输出。 StreamReader for reading lines of information from a standard text file.'>使用 StreamReader 读取标准文本文件的各行信息。
StreamReader defaults to UTF-8 encoding unless specified otherwise, instead of defaulting to the ANSI code page for the current system.'>除非另外指定,StreamReader 的默认编码为 UTF-8,而不是当前系统的 ANSI 代码页。 UTF-8 可以正确处理 Unicode 字符并在操作系统的本地化版本上提供一致的结果。
StreamReader is not thread safe.'>默认情况下,StreamReader 不是线程安全的。 TextReader.Synchronized for a thread-safe wrapper.'>有关线程安全包装的信息,请参见 TextReader.Synchronized。--FileStream buffers input and output for better performance.'>部分内容以删简
FileStream buffers input and output for better performance.'>
从这两个描述的对比来看我们就知道了FileStream主要是操作FileStream class to read from, write to, open, and close files on a file system, as well as to manipulate other file-related operating system handles including pipes, standard input, and standard output.'>文件系统上的文件,那么什么又是文件系统呢,按照我的理解就是存在于网络上的文件。
FileStream class to read from, write to, open, and close files on a file system, as well as to manipulate other file-related operating system handles including pipes, standard input, and standard output.'>那么StreamReader它只是StreamReader for reading lines of information from a standard text file.'>读取标准文本文件的各行信息,我的理解就是操作本地文本文件的内容。
StreamReader for reading lines of information from a standard text file.'>那好,我们已经认识了这两个文件是做什么的,那么我们才能知道在什么时候去使用。具体的使用整理后在贴出来。以便以后方便使用。
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
P70系列延期,华为新旗舰将在下月发布
3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。
而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?
根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。
更新日志
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]