Saves text to a file. If the filename begins with a slash (/) the file is written to the sdcard (for example, writing to /myFile.txt will write the file to /sdcard/myFile.txt). If the filename does not start with a slash, it will be written in the program's private data directory where it will not be accessible to other programs on the phone. There is a special exception for the AI Companion where these files are written to /sdcard/AppInventor/data to facilitate debugging. Note that this block will overwrite a file if it already exists. If you want to add content to a file use the append block.
also use Do it to debug your filename you created
you probably want to remove the slash before ".txt"... you also can try to remove the spaces in the filename...
Taifun
gius
unread,
Oct 22, 2015, 2:02:05 PM10/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MIT App Inventor Forum
The Do it I can not activate it. I have problems with the PC.
I removed the "/" and I tried the apk on the device,
the result is the same
"Error 2103: The files .... .txt could not be created"
what may be the mistake?
Taifun
unread,
Oct 22, 2015, 2:09:19 PM10/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MIT App Inventor Forum
without being able to test on the PC; this will be very cumbersome to find bugs