Reading and Writing Data Files
Provides classes that allow reading and writing of files.
In This Section
- What Is Storage?
- Storage refers to memory locations used for reading and writing data.
- Adding Game Data Files to Title Storage
- Describes how to add game data files to the title storage location.
- Reading Game Data from Title Storage
- Describes how to load game data from the title storage location.
- Writing Data (Windows Phone)
- Describes how to save game data on Windows Phone.
- Creating a File
- Demonstrates how to use the StorageContainer class to create a save game file in the user storage area on a device specified by the gamer.
- Opening a File for Reading/Writing
- Demonstrates how to use the StorageContainer class to open a save game file in the user storage area on a device specified by the gamer.
- Copying a File
- Demonstrates how to use the StorageContainer class to copy a save game file in the user storage area on a device specified by the gamer.
- Renaming a File
- Demonstrates how to use the StorageContainer class to rename a save game file in the user storage area on a device specified by the gamer.
- Enumerating Save Game Files
- Demonstrates how to use the StorageContainer class to get a list of save game files in the user storage area on a device specified by the gamer.
- Deleting a Save Game File
- Demonstrates how to use the StorageContainer class to delete a save game file in the user storage area on a device specified by the gamer.
- Saving Data to a Save Game File
- Demonstrates how to use the XmlSerializer class to write data in a custom class to a saved game, and how to load the data from the file.
- Getting a StorageDevice Asynchronously
- Demonstrates how to call BeginShowSelector and StorageDevice.EndShowSelector to get a StorageDevice object asynchronously.
Community Additions
ADD
Show: