Hi,
look in the helpfile at 'streamwriter'.
Basically:
Code:
Dim sr As StreamWriter = File.AppendText("\My documents\syslog.txt")
        sr.WriteLine(Now & "-->" & strEvent)
        sr.Flush()
        sr.Close()
If your problem is so urgent, there is a section in the help file. I searched for 'write text file' and the first entry is entitled 'How to: Write text to a file'

Pete