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 22:12:00

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/17245980/how-can-i-access-a-text-file-in-the-project-explorer-read-write-which-is-not

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