本文介绍了无缓冲的文件IO?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 框架中是否有一个类允许我以无缓冲的方式从文件中读取文本 ?也就是说,我希望能够以与StreamReader.ReadLine()相同的方式读取 中的行,但我还需要能够准确地读取获取该行文件中的位置。由于 StreamReader和FileStream都是缓冲数据,因此你不能将 BaseStream.Position与你从流中读取的数据等同起来。 Lee CrabtreeIs there a class in the framework that allows me read text from a filein an unbuffered manner? That is, I''d like to be able to read lines inthe same manner as StreamReader.ReadLine(), but I also need to be ableto accurately get the position in the file of that line. SinceStreamReader and FileStream both buffer data, you can''t equate theBaseStream.Position with the data you''re reading from the stream.Lee Crabtree推荐答案 这篇关于无缓冲的文件IO?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-30 23:29