splitting a string

前端 未结 6 1994
不思量自难忘°
不思量自难忘° 2021-01-26 16:52

i have the following string:

http://pastebin.com/d29ae565b

i need to separate each value and put it in an array. typically it would be done by \".split\". howeve

6条回答
  •  情书的邮戳
    2021-01-26 17:43

    If you are reading that data from a file, you can back up a step and use the ReadLine() method from the StreamReader class.

    The code would look something like this:

    Dim myReader as new StreamReader(strFilePath)
    Dim myLines as new List(Of String)
    
    While Not myReader.EndOfStream
        myLines.Add(myReader.ReadLine())
    end While
    

    Your List(of String) would then contain one String for each row of data.

提交回复
热议问题