tssweb

I am trying to delete each entry of the text file below, one at a time, after it has been used. I quess you can say I am trying to use an old "push and pop" method.

I have 9 variables I want to fill from the text file, then I want each variable cleared to receive the rest of the text from the file. Is there a way to do this in VB.net

4
113
2
A1455
00320
025
1819
122006
155
4
112
2
E1569
00425
030
1816
122006
145

line1 = sr.ReadLine()

line2 = sr.ReadLine()

line3 = sr.ReadLine()

line4 = sr.ReadLine()

line5 = sr.ReadLine()

line6 = sr.ReadLine()

line7 = sr.ReadLine()

line8 = sr.ReadLine()

line9 = sr.ReadLine()




Re: Game Technologies: DirectX 101 Deleting a line of text in a text file.

Key_46

try this:

-Create the Full String (

4
113
2
A1455
00320
025
1819
122006
155
4
112
2
E1569
00425
030
1816
122006
145

)

-create a simple loop to scan all the characters of the string and...when it find the first '\n' (line feed) it removes all the characters from the begining of the string to that point.

i hope this can help you

Key_46