在WP7上使用流

rad*_*scu 0 c# silverlight windows-phone-7

如何快速开始Windows Phone 7使用streams

我需要能够从磁盘加载,保存到磁盘,从内存加载,保存到内存文件wp7,但每次我尝试保存,这会发生:

Silverlight is in a sandboxed mode where it has restricted access. You can write to "Isolated Storage", but you cannot create files on their hard drive.
Run Code Online (Sandbox Code Playgroud)

您能否提供一些使用流的工作示例?还有一些教程/视频会很好

Mar*_*zek 5

在WP7上,您只能使用独立存储来保存/读取文件.你可以找到很多关于它的教程,比如在Windows Phone的 MSDN 隔离存储概述或者这个:所有关于WP7隔离存储 - 隔离存储的介绍.检查其他部分,了解如何使用流从隔离存储中保存/读取数据.