> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameSaveFiles

> XGameSaveFiles

# XGameSaveFiles

XGameSaveFiles is a set of APIs that enable reading and writing data on behalf of a user / game to be persisted across game sessions and seamlessly synced with the cloud to be used across multiple devices.

This is a variation of the XGameSave API designed to be used with Simple File based access once the gamesave path is retrieved.

## Functions

| Function                                                                                                              | Description                                                                                  |
| --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [XGameSaveFilesGetFolderWithUiAsync](/reference/system/xgamesavefiles/functions/xgamesavefilesgetfolderwithuiasync)   | Returns a folder that can be used to contain directories and files for storage.              |
| [XGameSaveFilesGetFolderWithUiResult](/reference/system/xgamesavefiles/functions/xgamesavefilesgetfolderwithuiresult) | Returns a folder that can be used to contain directories and files for storage in the cloud. |
| [XGameSaveFilesGetRemainingQuota](/reference/system/xgamesavefiles/functions/xgamesavefilesgetremainingquota)         | Returns the amount of data available to store save data using the XGameSaveFiles API.        |

## Error Codes

XGameSaveFiles shares error codes with the XGameSave API. The following codes may be returned. For a complete list, see [Error codes](/reference/errorcodes).

| Code                      | Value      | Description                                                                    |
| ------------------------- | ---------- | ------------------------------------------------------------------------------ |
| E\_GS\_PROVIDER\_MISMATCH | 0x8083000F | The game is mixing XGameSave and XGameSaveFiles calls, which is not supported. |

## Conceptual documentation

* [Game Saves overview](/build/core-features/common/game-save/game-saves-overview)
* [XGameSaveFiles guide](/build/core-features/common/game-save/xgamesavefiles)
* [Game Saves tools](/build/core-features/common/game-save/game-saves-tools)

## See also

[System API reference](/reference/system/gc-reference-system-toc)


## Related topics

- [XGameSaveFiles API overview](/build/core-features/common/game-save/xgamesavefiles.md)
- [XGameSaveFilesGetRemainingQuota](/reference/system/xgamesavefiles/functions/xgamesavefilesgetremainingquota.md)
- [Game Saves walkthroughs and samples](/build/core-features/common/game-save/game-saves-walkthroughs-and-samples.md)
- [XGameSaveFilesGetFolderWithUiAsync](/reference/system/xgamesavefiles/functions/xgamesavefilesgetfolderwithuiasync.md)
- [XGameSaveFilesGetFolderWithUiResult](/reference/system/xgamesavefiles/functions/xgamesavefilesgetfolderwithuiresult.md)
