Problema con borrar y guardar archivo

Pozo_profundo_historial.aia (264.9 KB)


Buenas tarde tengo un problema me sale un error en borrar y guardar un archivo 2105 y 2106 ,ya intente en darle permiso pero igual me sale error al guardar el archivo,podria alguien ayudarme en este problema seria de mucha ayuda ,gracias de antemano

The assets of your app are read only
Store the data in ASD, i.e. set file scope to App and use filename yourFilename.txt

Taifun

image
sigue con el mismo problema al cambiar como se ve en la foto

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Mi idea es actualisar con datos un textobox y despues de eso guadar con nuevo datos la lista que tengo pero primero tengo que borrar la lista antigua para poder guardar la nueva ,pero me sale error en ambas ,como borrar y guardar , alcomienzo coloque el programa que realise ,haber si me pueden ayudar en eso ,la idea es solo guardar o actualisar un documento de csv que estoy usando con app inventos

Remove the // and use only the filename.
Also you do not need to delete the file, it just will be overwritten
I do not see you setting the file scope to App...

Taifun


gracias por responder pero sigo reciviendo el mismo error

As already said, set the file scope ro App and remove the double slashes
You are still trying to write to assets, which are read only

http://ai2.appinventor.mit.edu/reference/components/storage.html#File

Below we briefly describe each scope type:

  • App: Files will be read from and written to app-specific storage on Android 2.2 and higher. On earlier versions of Android, files will be written to legacy storage.
  • Asset: Files will be read from the app assets. It is an error to attempt to write to app assets as they are contained in read-only storage.

Taifun