我怎样才能在Project Explorer"访问一个文本文件,读,写"这是不是在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?
本文介绍了我怎样才能在Project Explorer"访问一个文本文件,读,写"这是不是在Windows Phone 7的独立存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何访问一个文本文件中的项目资源管理器读,写这是不是在Windows Phone 7的独立存储?
我想这是在Project Explorer对我来说,我不希望它是在独立存储..拿到了点?
THX
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
推荐答案
我发现了一些资源对您有用。
I found some resources that useful for you.
读取文件
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#文件
的写文件
这篇关于我怎样才能在Project Explorer"访问一个文本文件,读,写"这是不是在Windows Phone 7的独立存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文