简体   繁体   中英

How can I access a text file in the project explorer “read, write” which is not in the isolated storage in Windows Phone 7?

How can I access a text file in the project explorer "read, write" which is not in the isolated storage in Windows Phone 7? I want it to be in the project explorer for me and i don't want it to be in the isolated storage .. got the point? thx

I found some resources that useful for you.

Read File

 var resource = System.Windows.Application.GetResourceStream(new Uri("textfile.txt", UriKind.Relative)

Write File

using (System.IO.StreamWriter writer = new System.IO.StreamWriter(fileName, true))

{

    writer.Write("Write some text here");

}

More information:

read file in C#

read text file in windows phone

write file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM