1. om narayan dixit's Avatar
    Hi All,

    I am new in windows application development.I am looking for code which help me to read the content of xml file stored in the application local folder.

    Description : In my application once user clicks on the submit button,I have stored the user status as "true" in xml file using below code :
    //
    Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
    var stream = await localFolder.CreateFileAsync(FILENAME, CreationCollisionOption.ReplaceExisting);

    string Usercontent = "<?xml version='1.0'?>";
    Usercontent = "<Name> : "+signup_Username.Text+"</Name>";
    Usercontent += "\n <Phone> : " + signup_Number.Text + "</Phone>";
    Usercontent += "\n <Email> : " + signup_Email.Text + "</Email>";
    Usercontent += "\n <Password> : " + signup_Password.Password + "</Password>";
    Usercontent += "\n LoginStatus : " + true + "";

    await FileIO.WriteTextAsync(stream, Usercontent);
    //
    But once the user again enter in my application I want to check the user status whether "true" or "false" by reading this above created file content.
    This is offline process to check the logged in status in a local mobile.

    Platform - Windows phone 8.1
    XAML and C#

    Can you please someone help me to implement this functionality.
    07-11-2015 05:06 AM

Similar Threads

  1. How can I stop loading loop on my Windows 10 mobile build 10166?
    By Akhil_007 in forum Windows 10 Mobile Insider Preview
    Replies: 76
    Last Post: 01-15-2018, 07:11 AM
  2. Looking for a 4.5" Windows phone: any suggestions?
    By Queen Kong1 in forum General Phone Discussion
    Replies: 15
    Last Post: 07-18-2015, 08:49 PM
  3. Why isn't the start screen restoring?
    By Windows Central Question in forum Nokia Lumia 930
    Replies: 7
    Last Post: 07-14-2015, 12:29 AM
  4. Windows 10 stratagy
    By Bobvfr in forum Windows 10
    Replies: 3
    Last Post: 07-11-2015, 05:19 PM
  5. Where can I find the offline install apps in Windows 10 mobile 10166?
    By Windows Central Question in forum Windows 10
    Replies: 2
    Last Post: 07-11-2015, 06:47 AM
LINK TO POST COPIED TO CLIPBOARD