Save game state using Property list or Text File?

Member
Posts: 23
Joined: 2007.12
Post: #1
What is the best way to save a games state Property list or Text File?

In "iPhone Application Programming Guide" it says

File Access Guidelines
When creating files or writing out file data, keep the following guidelines in mind:

Minimize the amount of data you write to the disk. File operations are relatively slow and involve writing to the Flash disk, which has a limited lifespan. Some specific tips to help you minimize file-related operations include:
Write only the portions of the file that changed, but aggregate changes when you can. Avoid writing out the entire file just to change a few bytes.
When defining your file format, group frequently modified content together so as to minimize the overall number of blocks that need to be written to disk each time.
If your data consists of structured content that is randomly accessed, store it in a SQLite database. This is especially important if the amount of data you are manipulating could grow to be more than a few megabytes in size.
Avoid writing cache files to disk. The only exception to this rule is when your application quits and you need to write state information that can be used to put your application back into the same state when it is next launched.

The data I am looking to save is Game Struct (Object Position,Speed,Size) all 2 vectors

So what would be my best choice?
Quote this message in a reply
Post Reply 


Messages In This Thread
Save game state using Property list or Text File? - Graphic Ace - Apr 5, 2009 08:34 PM
Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Game State Management Mattonaise 6 6,129 Apr 16, 2011 10:18 AM
Last Post: Mattonaise
  How do you create enums for state charts in ObjC? riruilo 7 5,789 Mar 27, 2010 11:50 PM
Last Post: AnotherJake
  Problem with reading bundle text file momostu 4 2,808 Feb 24, 2010 02:05 PM
Last Post: momostu
  Taking Pictures of Game State inside an app Bersaelor 7 4,594 Nov 3, 2009 05:07 AM
Last Post: Bersaelor
  IBOutlet on Field or Property? Nick 12 7,590 Oct 2, 2009 01:08 PM
Last Post: SethWillits