Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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);

Usercontent +=signup_Username.Text;
Usercontent += signup_Number.Text ;
Usercontent += signup_Email.Text;
Usercontent += signup_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.
Posted
Comments
[no name] 11-Jul-15 6:29am    
Reading the documentation sometimes helps https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.fileio.readtextasync.aspx
Richard MacCutchan 11-Jul-15 6:54am    
Lots of useful information at http://www.codeproject.com/KB/windows-phone-7/.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900