Can some please explain how to use these,i have an assignment to read data and write data to a sequential file using an array with 100 values,i am displaying the results in a listbox.
The problem is when i want to edit the sequential file,in order to edit the sequential file,i have to load what ever data in the file into the array,and then delete/move and recreate the file,when writing the array contents back into sequential file,the whole array is written including blanks,this is a problem when i populate the listbox ,it shows these blanks,i do not want this,just want to show existing data only.
I have tried the redim,but it just clears all the data in the arrary which defeats the point of the program. see below the edit code:
If WriteMode = 2 Then
Dim index As Integer
Dim read As StreamReader = File.OpenText("members.txt")
Do While read.Peek <> -1 And index < 100
'load paired arrays
members(index) = read.ReadLine()
PhoneNum(index) = read.ReadLine()
index = index + 1
members(index) = Me.MemberTextbox.Text
Dim membersCount As Integer = members.Length
For index = 1 To members.Length - 1