且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

读取文本文件并将其拆分

更新时间:2022-12-12 17:09:15

使用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[^]