如何在vb.net中写入文本文件 [英] How to write in text file in vb.net
本文介绍了如何在vb.net中写入文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
您能否建议我如何在asp.net(C#,vb.net)中的文本文件中进行编写.
那将很容易实现并且面向结果.
谢谢!
Hello,
Could you pls suggest me that how we can write in text file in asp.net (C#, vb.net).
That would be simple to implement and result oriented.
Thanks!
推荐答案
请参见
http://www.homeandlearn.co.uk/net/nets8p4.html [ ^ ]
http://msdn.microsoft.com/en-us/library/6ka1wd3w.aspx#Y0 [^ ]
http://www.techrepublic.com/article/使用visual-basic-net/1045309读取和写入文本文件 [
See
http://www.homeandlearn.co.uk/net/nets8p4.html[^]
http://msdn.microsoft.com/en-us/library/6ka1wd3w.aspx#Y0[^]
http://www.techrepublic.com/article/read-and-write-text-files-with-visual-basic-net/1045309[^]
在这里,我提供用于创建文本文件并将数据写入其中的代码
Hi,
Here I''m providing code for creating text file and writing data to it
File.Create("pathof folder");
StreamWriter sw = new StreamWriter("pathofrequiredfile");
sw.WriteLine("");
sw.Close();
尝试此操作,您必须导入System.IO;
一切顺利
Try this and you''ve to import System.IO;
All the best
这篇关于如何在vb.net中写入文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文