O'Reilly logo

Sams Teach Yourself Windows® Phone 7 Game Programming in 24 Hours by Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required