VB Code:
Private Sub Timer1_Timer()
Dim hFile As Integer, sLines() As String, sText As String
Static nLines As Long
On Error Resume Next
hFile = FreeFile
Open "c:\message.txt" For Binary As #hFile
sText = Input(LOF(hFile), hFile)
Close #hFile
sLines = Split(sText, vbCrLf)
If UBound(sLines) <> nLines Then
Do While Right$(sText, 2) = vbCrLf
sText = Left$(sText, Len(sText) - 2)
Loop
sText = sText & vbCrLf & Now
nLines = UBound(Split(sText, vbCrLf))
Open "c:\messages.txt" For Output As #hFile
Print #hFile, sText
Close #hFile
End If
If Text1.Text <> sText Then
Text1.Text = sText
End If
End Sub