Add CommandButton to your Form and name it "go":
VB Code:
Private Sub go_Click()
Dim cf As String, nf As String
Dim ff As Integer: ff = FreeFile
Open "c:\test.txt" For Input As #ff
Do Until EOF(ff)
Line Input #ff, cf
If Left(Trim(cf), 1) = "_" Or Right(Trim(cf), 1) = "_" Or InStr(1, cf, "__") Then
nf = nf & cf & vbCrLf
End If
Loop
Close #ff
If Len(nf) Then nf = Left(nf, Len(nf) - 2)
ff = FreeFile
Open "c:\test_output.txt" For Output As #ff
Print #ff, nf;
Close #ff
End Sub
Post back if you need further explanation.
Btw... what has all this got to do with the thread title??