Hour 19. Reading and Writing Files Using Storage

What You’ll Learn in This Hour:

Windows Phone isolated storage

Saving a data file

Loading a data file

Storage Demo example

This hour covers the storage system on WP7 in the context of reading and writing files for saved games and for game settings (such as user options). The XNA Framework makes it possible to read and write files using the System.IO.IsolatedStorage library. The storage memory on the WP7 is not changeable in code, and we can’t peruse the file system. All we can do is read and write files of a variety of types (most notably, XML files). We will focus on saved game data in this hour, but any type of data can be used. The IsolatedStorage library is unique on WP7, not shared ...

Get Sams Teach Yourself Windows® Phone 7 Game Programming in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.