vb Code:
Dim myLines As New List(Of String) Using SR As New IO.StreamReader("c:\test\Data.txt") Dim temp As String = Nothing Do While SR.Peek <> -1 temp = SR.ReadLine If Not temp.Contains("Total Qty") Then myLines.Add(temp) End If Loop End Using IO.File.WriteAllLines("c:\test\Data.txt", myLines.ToArray)




Reply With Quote