Storing a textfile with specific sub-folders in Windows Mobile 6

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2008
Posts: 83
Reputation: Elmo_loves_you is an unknown quantity at this point 
Solved Threads: 0
Elmo_loves_you's Avatar
Elmo_loves_you Elmo_loves_you is offline Offline
Junior Poster in Training

Storing a textfile with specific sub-folders in Windows Mobile 6

 
0
  #1
Sep 16th, 2008
Hi guys

I am able to add data to a textfile on a windows mobile device but can only get it to store within the 'My Device' folder.

I have tried to place it within folders ... but it cries with a NullReferenceException

  1. Dim path As String = "\testFile.txt" 'Name of the File to be created
  2.  
  3. Private Sub btn_Proceed_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Proceed.Click
  4. 'Pass the data entered to the string variable
  5. If File.Exists(Path) = False Then
  6. 'Create a file to write to
  7. sw = File.CreateText(Path)
  8. sw.Write("Text within the file: ")

Has anyone got any ideas please
Michelle (Junior Developer)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC