call File1.ReadFrom
filename "file.txt"
when File1.GotText
do if is empty get text
call File1.Save
text "0"
fileName "file.txt"
use the Screen.ErrorOccurred block
btw. to read a file from SD card, you have to prefix the filename with a /, see also the documentation
Taifun
Trying to push the limits of App Inventor!
Snippets and
Tutorials from
Pura Vida Apps by
Taifun.
1. how i check 2 files exists?
2. how to create dir?