how to write to a file present in Package in windows 8? RRS feed

  • Question

  • Unauthorised Exception when trying to write to a file present in tha package .how to resolve it?

    I am able to read content from file and unable to write to file present in the package(i.e solution explorer ).

    Wednesday, April 24, 2013 2:23 AM


  • Apps are not allowed to modify files in installation folder. If you need to store some data you should use Windows.Storage.ApplicationData.Current.LocalFolder instead.

    In case when you need to modify existing file you can copy it from installation folder to local data folder and work with the file there.


    • Marked as answer by Aaron Xue Wednesday, May 8, 2013 10:03 AM
    Wednesday, April 24, 2013 2:43 AM