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

雨燕双飞 提交于 2019-12-02 07:44:44
likewer

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!