Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using XNA 4.0. How can I load and save settings when on the Xbox? And can I write to and read from files?

share|improve this question
up vote 10 down vote accepted

You will be able to read and write from any flat file (XML, JSON to name two), you can also use SQLite with XNA 4.0

Here are some samples from microsoft

share|improve this answer
Awesome! That's just great! – Mathias Lykkegaard Lorenzen Nov 3 '11 at 23:19

You should use IsolatedStorage for settings specific to a particular console (resolution, volume, etc.), and StorageContainer for save game data (that gamers should be able to back up & take with them).

StorageContainer data allows the player to select on which storage device to write the data, whereas IsolatedStorage writes on the same device where the game is, no questions asked.

For your game to successfully pass review on XBLIG, you'll need to ensure all cases work correctly (cancelling the device selection dialog, handling removal of a storage device, etc.)

Useful links:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.