我怎样才能在Project Explorer&QUOT访问一个文本文件,读,写"这是不是在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?

查看:132
本文介绍了我怎样才能在Project Explorer&QUOT访问一个文本文件,读,写"这是不是在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#文件

读取windows phone的文本文件

写文件

这篇关于我怎样才能在Project Explorer&QUOT访问一个文本文件,读,写"这是不是在Windows Phone 7的独立存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆