[Quote=引用 5 楼 wtnu200 的回复:]
Dim a As String
Dim b As String
Dim i As New IO.StreamReader("test.txt")
b = i.ReadLine
a = i.ReadToEnd()
i.Close()
a = a.Replace(b, "")
Dim w As New IO.StreamWriter("test.txt")
w.Write(a)
w.Close()
Dim a As String
Dim b As String
Dim i As New IO.StreamReader("test.txt")
b = i.ReadLine
a = i.ReadToEnd()
i.Close()
a = a.Replace(b, "")
Dim w As New IO.StreamWriter("test.txt")
w.Write(a)
w.Close()