想要从文本文件更新文本数据而不更改整个数据 [英] want to update text data from text file without changing entire data
本文介绍了想要从文本文件更新文本数据而不更改整个数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从文本文件更新文本数据而不更改整个数据
因为文本文件已经存在而我想更新文本数据而不更改整个数据
为此我没有任何代码..
所以请帮我更新TEXT数据
i want to update text data from text file without changing entire data
as a text file is already exists and i want to update the text data without changing entire data
and for this i don''t have any code..
so please help me to update TEXT data
推荐答案
http://www.dotnetperls.com/file-vbnet [ ^ ]
非常简单。你需要指定路径并使用streamreader你可以从文件中读取整个内容并将其显示在你的文本框中。
StreamReader reader = new Streamreader();
textbox.text = reader.readtoend(文本文件的路径);
Its very simple. u need to specify the path and using streamreader u can read the entire content from the file and display it in your text box.
StreamReader reader = new Streamreader();
textbox.text = reader.readtoend(path of your textfile");
这篇关于想要从文本文件更新文本数据而不更改整个数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文