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 8968237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:25:29+00:00 2026-06-15T17:25:29+00:00

I know that MS Windows Phone has not nice policy of forbiddings simple saving

  • 0

I know that MS Windows Phone has not nice policy of forbiddings simple saving files on the phone. I want to have one file consisting data which looks like that:

//string double
    A 444,0
    B 332,240
    ...

This is database of tone corresponding to the frequency in Hz. How to built it into the app so I can read it later. I do not want to create during the run of the app but want it to be created already as a source of data for the app so I can read it.

  • 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-15T17:25:30+00:00Added an answer on June 15, 2026 at 5:25 pm

    Add the file to your project, and in the properties window for the file, set the build action to Resource.

    In your code, you can retrieve a StreamResourceInfo instance by calling the Application.GetResourceStream method and then reading from it’s stream using a StreamReader.

    The path to the file will be “/AssemblyName;component/Folder/File.ext”. Where “AssemblyName” is the name of your assembly, and “/Folder/File.ext” is the path to the file relative to your project root. For example. The following code reads the “/Data/tones.txt” file:

    private void ReadTones()
    {
      string tonesPath = "/PhoneReadFileResource;component/Data/tones.txt";
      Uri tonesUri = new Uri(tonesPath, UriKind.Relative);
      StreamResourceInfo sri = Application.GetResourceStream(tonesUri);
      StreamReader rdr = new StreamReader(sri.Stream);
      TextDisplay.Text = rdr.ReadToEnd();
    }
    

    You can download a sample project based on your question here: http://sdrv.ms/RnVbQ3

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

Sidebar

Related Questions

I know that pivot control of windows phone has two parts pivot headers and
We know that, shared memory in Windows is implemented via memory mapped files backed
I am using windows 2000 server. I want to know top 5 processes that
I see that there is not a dropdown/combobox offered in the windows phone toolbox.
I'm writing a class library (Windows Phone 7 target) that has a public property
Windows Phone 7.5 app. Designer has created Home.xaml in Blend that has 3 images(menu
I have a tablet Futjitsu Stylistic Q550. It's running on Windows 7 (not Phone!).
I know that user accounts in Windows 7 are limited by default, so a
I know that memory usage is a very complex issue on Windows. I am
Does anybody know where I can find a utility/application running on Windows that analyses

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.