Hi,
look in the helpfile at 'streamwriter'.
Basically:
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'Code:Dim sr As StreamWriter = File.AppendText("\My documents\syslog.txt") sr.WriteLine(Now & "-->" & strEvent) sr.Flush() sr.Close()
Pete





Reply With Quote