943,708 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1471
  • VB.NET RSS
Sep 16th, 2008
0

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

Expand Post »
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

VB.NET Syntax (Toggle Plain Text)
  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
Reputation Points: 30
Solved Threads: 0
Junior Poster in Training
Elmo_loves_you is offline Offline
85 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Datagridview combobox
Next Thread in VB.NET Forum Timeline: Load form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC