无需流即可加载和保存rtb [英] load&save rtb without streams

查看:56
本文介绍了无需流即可加载和保存rtb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我如何在没有StreamReader和Streamwriter的情况下在富文本框中加载和保存文件
以及如何每10秒为rtb中的文本建立一次自动保存功能,我使用了计时器和复选框来检查自动尺寸选择,但是我不知道如何在rtb中保存文本

hi everyone
how can i load & save files in rich text box without streamreader & streamwriter
and how can i build autosave for text in the rtb every 10 sec i used timer and checkbox to check the auto size choice but i have no idea how to save text on the rtb
what property if any???

推荐答案

听起来像您知道如何使用流读取器和流写入器进行操作.由于这些是您将用于读取和写入数据的任何类的基类,因此,我怀疑是否还有其他方法,至少不是内部方法.最大的问题是,为什么您会要求一种不使用执行该操作的类的方法?使用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 ?


这篇关于无需流即可加载和保存rtb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆