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

Report as inappropriate.

Vellyxenya
Vellyxenya presents ...

2016/3/2

Storing Infos

Here's a little simple code that writes a sentence in an external text file and recover it again to display it in your world.
The external file will be located in your C:\Users\...
The purpose of putting it in this location is to be able to write/read from it even after exporting your project to a .jar file, which is not the case if your text file stays in your project directory (Because a jar file is hardly modifiable and it's highly disadvised to try modifying it)

2394 views / 6 in the last 7 days

Tags: demo with-source

open in greenfoot
Your browser does not support the canvas tag.

No Comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.