Code:
Imports System.IO
Public Class Form6
    Private Sub SearchBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SearchBtn.Click

        Dim alltext() As String = System.IO.File.ReadAllLines("C:\Users\Parent\Documents\Visual Studio 2008\Projects\Members.txt")
        Dim lookfor As String = IDFilter.Text & ","
        For Each line As String In Filter(alltext, lookfor)
            If line.StartsWith(IDFilter.Text) Then
                MemberDetails.Text = line
            End If
        Next

    End Sub
End Class
I'm using text files as an array to store and remove information, however I do not know know how to adapt this code so the line I search for is removed.

My text files are set up as such:
021,Donovan,56 Eynesford Crescent,Bexleyheath,CT5 1TR,09/08/1967,13 March 2012,Bronze
062,Fredrikson,6 Freil Road,Gravesend,CT9 1RB,12/06/1995,13 March 2012,Silver

So I can search and locate the ID, in these cases 021 or 062, but I want to be able to remove the line I want, once it's been found. Can anyone help?