Elmo_loves_you 20 Junior Poster in Training

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

Dim path As String = "\testFile.txt" 'Name of the File to be created

Private Sub btn_Proceed_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Proceed.Click
        'Pass the data entered to the string variable
        If File.Exists(Path) = False Then
            'Create a file to write to
            sw = File.CreateText(Path)
            sw.Write("Text within the file: ")

Has anyone got any ideas please :)