I read my text file into a string with something like
String = My.Computer.FileSystem.ReadAllText("textfile.txt")
now the text in the file looks something like
xxx xxxx
xx xxxxxxx
xxxx xxxxx
and i have to seperate everything into several arrays.. which really wouldn't be a problem but i can't seem to figure out where one line ends the next begins.
For Pointer As Integer = 0 To text.Length - 1
If text.Substring(Pointer, 1) Like controlchar.newline Then
array2 = Mid(text, 1, 2)
countnum = 0
Else
countnum = countnum + 1
End If
Next
i have no idea what to put in the if that has controlchars.newline in it.. quite frankly it's becoming a big head ache.. Anyway any help would be much appreciated..
oh and i know the code inside it is a bit awry but i can't really work on it until i can make the program find where the line ends..
As always any help is apreciated.