knxrb
Aug 13th, 2007, 09:39 AM
Anyone know how to save a text file onto a mobile device using vb 2005?
I am using the windows mobile 5.0 template to make an app for a mobile.
----
knxrb
petevick
Aug 13th, 2007, 09:47 AM
Hi,
look in the helpfile at 'streamwriter'.
Basically:
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