iPhone: How can I store a high score to disk.

Posted by Robert on Stack Overflow See other posts from Stack Overflow or by Robert
Published on 2010-06-18T11:18:57Z Indexed on 2010/06/18 11:23 UTC
Read the original article Hit count: 215

Filed under:
|

I have a int which is my high score:

NSInterger highScore;

I want to store it persistently to disk

Do I have to convert it to a string, then write the string to a file, then parse it back when I want to read it. Or is there a better way to store small amounts of data?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk