Results 1 to 2 of 2

Thread: Windows Mobile 5.0 - URGENT HELP NEEDED

  1. #1

    Thread Starter
    Hyperactive Member knxrb's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Posts
    321

    Exclamation Windows Mobile 5.0 - URGENT HELP NEEDED

    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

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Windows Mobile 5.0 - URGENT HELP NEEDED

    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
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width