如何在项目资源管理器中访问文本文件“读、写"?哪个不在 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?

查看:24
本文介绍了如何在项目资源管理器中访问文本文件“读、写"?哪个不在 Windows Phone 7 的独立存储中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在项目资源管理器读取、写入"中访问不在 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? 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 中读取文本文件电话

写入文件

这篇关于如何在项目资源管理器中访问文本文件“读、写"?哪个不在 Windows Phone 7 的独立存储中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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