vb Code:
  1. Dim myLines As New List(Of String)
  2.  
  3.         Using SR As New IO.StreamReader("c:\test\Data.txt")
  4.             Dim temp As String = Nothing
  5.             Do While SR.Peek <> -1
  6.                 temp = SR.ReadLine
  7.                 If Not temp.Contains("Total Qty") Then
  8.                     myLines.Add(temp)
  9.                 End If
  10.             Loop
  11.         End Using
  12.  
  13.         IO.File.WriteAllLines("c:\test\Data.txt", myLines.ToArray)