[英]Read and Display PDF file from Isolated Storage in a windows phone 8 app
[英]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");
}
更多信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.