Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Password Protected Text File

807580May 16 2010 — edited May 17 2010
I'm creating a Tetris game and I want to be able to store the user's scores in a text file. I want the game to be able to read from the file and display the high scores. However, I want to make it so that other people can't just open up the file and manually change the scores. I've read that you can encrypt the file. However, this still allows the possibility of opening the file and deleting everything. Is there another way, other than setting a password, to prevent the user from opening the file?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2010
Added on May 16 2010
6 comments
1,406 views