读取文本文件并将其拆分 [英] Reading text file and split it
本文介绍了读取文本文件并将其拆分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何读取文本文件并将其拆分,拆分后在文本框中读取?
解决方案
使用System.File有几种方法对象包括File.ReadAllText, https://msdn.microsoft.com/en -us / library / ms143368(v = vs.110).aspx [ ^ ]
阅读文本,做你需要做的任何拆分,以及然后将值放入文本框中。
此外,请参阅此处的其他文件方法: https://msdn.microsoft.com/en-us/library/system.io.file(v = vs.110)的.aspx [ ^ ]
how do I to read text file and split it, to reading it in text box after the split ?
解决方案
There are several ways using the System.File object including File.ReadAllText, https://msdn.microsoft.com/en-us/library/ms143368(v=vs.110).aspx[^]
Read the text in, do whatever splitting you need to do, and then put the value into a textbox.
Also, see other File methods here: https://msdn.microsoft.com/en-us/library/system.io.file(v=vs.110).aspx[^]
这篇关于读取文本文件并将其拆分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文