更新时间:2023-12-05 19:47:52
听起来像您知道如何使用流读取器和流写入器进行操作.由于这些是您将用于读取和写入数据的任何类的基类,因此,我怀疑是否还有其他方法,至少不是内部方法.最大的问题是,为什么您会要求一种不使用执行该操作的类的方法?使用streamwriter编写流有什么问题?
It sounds like you know how to do it using a stream reader and a stream writer. As these are the base classes of any class you would use to read and write data, I doubt there''s any other way, at least, not internally. The big question is, why would you ask for a way to do it that doesn''t use the classes that do it ? What''s wrong with using a streamwriter to write a stream ?