×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    62

    Static file as Content in project, can it be modified ?

    Hi

    As title says, if I add for example XML file to my project as content. I can read it from code with XDocument. But I cannot see file with in Isolated Storage. Also, XDocument throws exception when trying to save.

    So, can I somehow modify files which are included as content ?

    Or do I need to read XML and then save it to Isolated Storage and continue using it from there ?
    This approach would drive to situation where files are as content, in some function/constructor read file with resource stream and save to isolated storage.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: Static file as Content in project, can it be modified ?

    Based on the results of a search for wp7 deploy isolated storage with Google, I strongly believe that you have to do the latter,
    Or do I need to read XML and then save it to Isolated Storage and continue using it from there
    However I disagree with
    This approach would drive to situation where files are as content, in some function/constructor read file with resource stream and save to isolated storage.
    You should create the working copy on the first access (when you find it missing) and never touch the resource stream again.

    An interesting 'shortcut' may exist for databases though: http://erikej.blogspot.com/2012/01/w...abase-tip.html

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2012
    Posts
    5

    Re: Static file as Content in project, can it be modified ?

    You are right, you need to copy the file to isolated storage and after that work with it

Similar Threads

  1. How to use Display.vibrate() - static content?
    By schumi1331 in forum Mobile Java General
    Replies: 3
    Last Post: 2011-11-23, 14:08
  2. Replies: 2
    Last Post: 2008-04-24, 17:22
  3. Replies: 2
    Last Post: 2007-11-20, 14:04
  4. Import a project in CodeWarior and have a Copy so dat the original wont get modified
    By netra in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2007-04-27, 14:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×