繁体   English   中英

如何在项目浏览器中的“读取,写入”中访问文本文件,该文件不在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?

如何在项目浏览器“读取,写入”中访问文本文件,该文件不在Windows Phone 7的独立存储中? 我希望它在我的项目浏览器中,并且我不希望它在隔离的存储中..明白了吗? 谢谢

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

读取档案

 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");

}

更多信息:

在C#中读取文件

在Windows Phone中读取文本文件

写文件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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