Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8249089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:24:57+00:00 2026-06-07T23:24:57+00:00

I want to save a text file on the wp7 file system that doesn’t

  • 0

I want to save a text file on the wp7 file system that doesn’t get deleted on uninstall of the app.

I want to save the version of the app and language preference selected by the user so that it doesnt get deleted when the user upgrades the app. I dont want to use IsolatedStorage instead i want to use the device’s file system.. Is this possible? If yes how??? As of now am doing this:-

 public void SaveLanguageAndVersion()
    {
        IsolatedStorageFile appInfoFile = IsolatedStorageFile.GetUserStoreForApplication();

        //create new file
        using (StreamWriter writetoAppInfo = new StreamWriter(new IsolatedStorageFileStream("appInfo.txt", FileMode.Create, FileAccess.Write, appInfoFile)))
        {
            string appVer = new StringBuilder().Append(Utils.getRelVersion()).Append(":").Append(Utils.getFWversion()).ToString();
            writetoAppInfo.WriteLine(appVer);
            string appLanguage = CacheManager.getInstance().getApplicationSettings(Utils.APP_LANG);
            writetoAppInfo.WriteLine(appLanguage);
            writetoAppInfo.Close();
        }
    }

but the appinfo.txt file gets deleted on uninstalling of the app. I wanna overcome this.

If i use LINQ SQL can i overcome this problem and achieve what i want? i.e., Save the app level info like the version and the language of user’s choice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T23:24:59+00:00Added an answer on June 7, 2026 at 11:24 pm

    This is not possible. If you want to have device / user specific data, consider using ANID or Device ID and store it in the Cloud

    have a look at this post. Gives you info on how to get ANID and DeviceID
    http://www.nickharris.net/2010/09/windows-phone-7-how-to-find-the-device-unique-id-windows-live-anonymous-id-and-manufacturer/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to save results in a text file. How can I do that?
I want to save a matrix to a text file, so I can read
I want to use Ckeditor for Entering text and I want to save that
I have a RichTextBox and I want to save the text to a file.
I want to create .bat application that read into text file, find / and
I want to save to a text file the C++ compiler status. I'm using
So I've developed a system that saves database insert/update commands into a text file
I have some reference data in a text file (~5MB) that I want to
The problem is, i want to save a text file (or anything) in the
I want to save in a text file without overwriting the current data. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.