problem with File.Exist

marcick

Well-Known Member
Licensed User
Longtime User
Hi everybody,
I have this funny problem:

Lets' start from a file named "0000.txt" present on the device.
After executing the code below, the log report:

file exist
true
file still exist

But the file has really been deleted and no longer exist ...
Can you explain that ?


This is the code:

If File.Exists(File.DirRootExternal,"0000.txt") Then
Log("file exist")
End If
Dim q As Boolean
q=File.Delete( File.DirRootExternal,"0000.txt")
Log(q)
If File.Exists(File.DirRootExternal,"0000.txt") Then
Log("file still exist")
End If
 
Last edited:

marcick

Well-Known Member
Licensed User
Longtime User
Thank you Roger,
the cause seems the second option, but I need some more experiment.
I'll let you know.
Marco
 
Upvote 0
Top