Using the code below to loop through my array which was created by reading a text file with 10 or so lines in it, so each thing in the array is one of those lines from the text file
Dim myarray As Array
myarray = Split(stringfromtextfile, vbCrLf)
For each element in myArray
MgBox(element)
Dim splititem As String = Split(element, "\")
The message box shows the line as I'm expecting but when I try to split it up I just get the error:
Error 1 Value of type '1-dimensional array of String' cannot be converted to 'String'.
How do I get the value which was shown in the message box converted to a string to I can then do a split on it?
Cheers!
Dim lines=System.IO.File.ReadLines(path).Take(10)to take the first ten lines from a file. Then to split useString.Split.List(Of String)?