C# 如何访问project explorer中的文本文件;读,写;哪个不在Windows Phone 7中的独立存储中?

C# 如何访问project explorer中的文本文件;读,写;哪个不在Windows Phone 7中的独立存储中?,c#,windows-phone-7,text,explorer,C#,Windows Phone 7,Text,Explorer,如何访问project explorer“读、写”中的文本文件,该文件不在Windows Phone 7的独立存储中? 我希望它在project explorer中,而不希望它在孤立的存储中。。明白了吗? thx我发现了一些对您有用的资源 读取文件 var resource = System.Windows.Application.GetResourceStream(new Uri("textfile.txt", UriKind.Relative) 写入文件 using (System.IO

如何访问project explorer“读、写”中的文本文件,该文件不在Windows Phone 7的独立存储中? 我希望它在project explorer中,而不希望它在孤立的存储中。。明白了吗?
thx

我发现了一些对您有用的资源

读取文件

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

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

{

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

}
更多信息: