Programmer76
Programmer
Hi,
I am learing smart device programming and can't seem to do a simple open and create a file...
I get an error stateing that GetCurrentDirectory is not supported...can someone tell me what I should be using?
I am learing smart device programming and can't seem to do a simple open and create a file...
Code:
Dim fs As FileStream = File.Open(System.IO.Directory.GetCurrentDirectory + Me.sFileName, FileMode.Create, FileAccess.Write)
Dim sw As New StreamWriter(fs)
'Serialize the arraylist to a text file
For Each t As Task In Me.alTask
sw.WriteLine(t.Serialize())
Next
sw.Flush()
sw.Close()
fs.Close()
I get an error stateing that GetCurrentDirectory is not supported...can someone tell me what I should be using?