// Obtain the virtual store for the application.
IsolatedStorageFile myStore = IsolatedStorageFile.GetUserStoreForApplication();
// Create a new folder and call it "MyFolder".
myStore.CreateDirectory("MyFolder");
// Specify the file path and options.
using (var isoFileStream = new IsolatedStorageFileStream("MyFolder\\myFile.txt", FileMode.Append, myStore))
{
//Write the data
using (var isoFileWriter = new StreamWriter(isoFileStream))
{
isoFileWriter.WriteLine("aad");
}
}
这好像是在msdn看到的
问题1:这段代码创建的MyFolder文件夹和myFile.txt为什么找不到,创建到什么地方了?
问题2:FileMode.Append明明写的是Append追加,为什么内容追加不进去?读取出来的内容一直是aad?
问题3:一旦结束程序,再重新启动,就都不出文件了,感觉这个问题和问题有点联系。
这段代码难道是创建的文件是虚拟?如果我想写文件永久保存到磁盘上 怎么做?
求解答

------解决方案--------------------

------解决方案--------------------
还有 创建的目录是放在独立存储空间的。。你是看不到的。。。