How to declare text with a line

后端 未结 4 1731
日久生厌
日久生厌 2021-01-28 23:03

I\'m new to programming and decided to take VB.net up as my first language, I\'m quite new and I\'m currently trying to write a sorting program. I\'m trying to load in a file, s

4条回答
  •  情话喂你
    2021-01-28 23:22

    This can be done much faster

    Dim lines() As String = System.IO.File.ReadAllLines("S:\class" & CName & ".rtf")
    For Each line as String in lines
    
        ' here I am not sure what you asking but you can do these to identify line
        ' Regex.Match("[0-9]+")
        ' line.contains...
        ' line.IndexOf...
    
        ' Do whatever you need with the line here
    
    Next
    

提交回复
热议问题