hello all,

i have a little loop what reads in a text file
the text layout is

12 <---- drop
1212121 <--- keep
text <-- drop
blank line <---- drop
12 <---- drop
1212121 <--- keep
text <---- drop
blank <---- drop
12 <---- drop
1212121 <--- keep
text <---- drop
blank <---- drop

i just dont know how to go about dropping individual lines since the Isnumeric function is redundent since i can delete some numeric values but not all.

i cant compear it against other text either because the text files change every time

the code for my loop is this atm

Code:
Using ofd As New OpenFileDialog
            ofd.Filter = "all Files|*.srt"
            ofd.Title = "Select File"
            ofd.InitialDirectory = lbldir.Text
            If ofd.ShowDialog() = Windows.Forms.DialogResult.OK Then
                Dim fileReader As String
                Dim srFileReader As System.IO.StreamReader
                Dim sInputLine As String

                ListBox1.Items.Clear()
                lbltimecodes.Text = "0"
                fileReader = ofd.FileName
                srFileReader = System.IO.File.OpenText(fileReader)
                lbldir.Text = fileReader.ToString
                sInputLine = srFileReader.ReadLine()

                Do Until sInputLine Is Nothing
                    ListBox1.Items.Add(sInputLine)
                    sInputLine = srFileReader.ReadLine()
                Loop

                lbltimecodes.Text = ListBox1.Items.Count
                srFileReader.Close()
                errormsg = True
            End If
now this code does what i want it to do but i also want the same text file to be stripped of the data i mentioned before so we have the origional and the stripped to compear

any help with this would be great

thanks in advanced to any help i recive
beattie282