![](/img/trans.png)
[英]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.