Hey, I'm trying to read a file line by line into an array but It skips the item at index: 3 I have it msgboxing just to make sure and it wont even touch it. any help is appreciated
textfile contents =Code:Dim Btn As Button = DirectCast(sender, Button) Dim path As String = Application.StartupPath & "\Libraries\" & Btn.Text.Replace(" ", "_") & ".ipt" Dim i As Integer = 0 Dim lines As String() = IO.File.ReadAllLines(path) Dim arraymorph(lines.Length) As String Dim ReadMorphs As New IO.StreamReader(path) While ReadMorphs.Peek() <> -1 MsgBox(ReadMorphs.ReadLine.ToString()) arraymorph(i) = ReadMorphs.ReadLine i += 1 End While
@ALWAYSREPLACE
a:4
t:7
textissue
e:3
just wont touch texttissue
Thanks again
Sumn3rd


Reply With Quote
