Best form of local storage for Windows 8 Apps RRS feed

  • Question

  • Hi Guys,

    I have a requirement where the user would key in some data in the app. The app needs to store the data in the local storage some where on the device. This data entered needs to be accessible to the app.

    Is there any recommended way in which this data can be stored? I want the data to be stored in the xml format.

    Any help would be appreciated.



    Friday, August 17, 2012 12:24 PM


  • Hi Saurabh,

    The samples are your friends...

    If it is a simple XML file just use the local store to store a file.

    The file access sample shows you how to read and write text files: http://code.msdn.microsoft.com/windowsapps/File-access-sample-d723e597

     Windows.Storage.FileIO.readTextAsync(SdkSample.sampleFile).done(function (fileContent) { 

     Windows.Storage.FileIO.writeTextAsync(SdkSample.sampleFile, userContent).done(function () { 


    Jeff Sanders (MSFT)

    Friday, August 17, 2012 12:40 PM