D DATASOFT (SOLUSOFT S A) Member Licensed User Longtime User Sep 30, 2013 #1 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 Code: Copy 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 Code: Copy 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
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 Code: Copy 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 Code: Copy 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
bgsoft Well-Known Member Licensed User Longtime User Sep 30, 2013 #2 I answered you in Spanish forum http://www.b4x.com/android/forum/threads/problemas-con-file-exist.32913/ Upvote 0
I answered you in Spanish forum http://www.b4x.com/android/forum/threads/problemas-con-file-exist.32913/