I have a small app running on a windows Mobile 6 device and wrote the following to read a text file
When I debug this using the "Windows Mobile 6 Professional Emulator" option I get "File Does Not Exist".Code:Dim FILE_NAME As String = "C:\test.txt" If System.IO.File.Exists(FILE_NAME) = True Then Dim objReader As New System.IO.StreamReader(FILE_NAME) TextBox1.Text = objReader.ReadToEnd objReader.Close() Else MsgBox("File Does Not Exist")
I am reasonably sure the file name is spelt correctly - should I be specifying it as something different to "c:\" for the emulator, please?
I have not tried it on the device itself yet.
Any help would be appreciated.




Reply With Quote