writefile with read permissions help please

giga

Well-Known Member
Licensed User
Longtime User
:sign0085: I am trying to use writer.write to create a read only file. I could even initiate a chmod and change the file to read only after it has been created.
Does anyone know a way to do this. I have tried the su library and it looked like it would but no change.

example

B4X:
Dim su As SuCommand       
 su.SuCommand("chmod 600 /mnt/sdcard/profile.ini")

Thank You
 
Last edited:

giga

Well-Known Member
Licensed User
Longtime User
The app I am working on requires the owner to be the ONLY one who is
able to accessa need file. So the file needs to be chmod 600. Is there a location that the app can write to and the permissions are set automatically.

or Does B4A have a

setReadable(boolean readable, boolean ownerOnly)


I saw this under this link: File | Android Developers

Thanks to ALL as usual.
 
Upvote 0
Top