问题
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