Android Question file.exist +me bad logic

DATASOFT (SOLUSOFT S A)

Member
Licensed User
Longtime User
first i wanna know what is wrong with me code second i wanna know if the archive exist in the sd or internal memo i try with
B4X:
If (File.Exists(File.DirDefaultExternal,"pc.txt")=False) AND (File.Exists(File.DirInternal,"pc.txt")=False) Then
'create the archive in sd or inter memo
else
'read the archive
i try to add to manifest the permissons
B4X:
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) (i already know they are be for default)
and i see the same syntax in other project
i already check the cast sensitive property and i can read and write the archive (i see it with the file manager) but i cant said when he exist
 
Top