hi all,
i face check txt file location problem in window mobile 6 professional.
code testing for window form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim FILE_NAME As String = "c:\Users\Chee Kang\Desktop\New folder (2)\testFile.txt"
If System.IO.File.Exists(FILE_NAME) = True Then
MessageBox.Show("File already Exist")
Else
MsgBox("File Does Not Exist")
End If
End Sub
coding above show me the correct answer :File already Exist (i pasted the file there before i start my program)
but when i apply the same thing in window mobile 6 professional, it give me the wrong answer "File Does Not Exist" although i pasted the file there before i start my program.
i try to figure out the reason, but so far i can't get any correct reason.
Kindly advise.
thanks