This site requires JavaScript, please enable it in your browser!
Greenfoot back
Tyronmi
Tyronmi wrote ...

2017/3/5

updating texts

Tyronmi Tyronmi

2017/3/5

#
Hi guys. I need help with this one pls. Let's say I have a scenario whereby when I click a button, I get a sort of background containing txt about certain info. The problem however is updating the txt when necessary. Is it possible to be able to add txt and save it such that when nxt I open the app, I should see the changes. I also plan porting the app on an andriod phone. Is this possible even after droidfooting it? Thanks
Super_Hippo Super_Hippo

2017/3/5

#
You can save up to 5 Strings with each up to 50 characters (for each user) with the UserInfo class provided by Greenfoot. It saves them into a .csv file and can get the data from it. You can obviously doing the same with writing the text into a .txt file, but this is not as easy as with the UserInfo class. There are some examples here on the site how to write to a .txt file I doubt that Droidfoot has this option though, but I don't know.
You need to login to post a reply.