我一直在尝试使用独立存储在c:驱动器上打开文件,我尝试了不同的方法,但它们都给出相同的错误,下面是代码;IsolatedStorageFileStream不允许的操作
IsolatedStorageFile ifs = IsolatedStorageFile.GetUserStoreForApplication();
Stream stream = new IsolatedStorageFileStream("avi.txt", FileMode.Open, FileAccess.Read, ifs);
我甚至尝试:
1)
Stream stream = new IsolatedStorageFileStream(@"avi.txt", FileMode.Open, FileAccess.Read, ifs);
2)
Stream stream = new IsolatedStorageFileStream(@"files/avi.txt", FileMode.Open, FileAccess.Read, ifs);
3)
Stream stream = new IsolatedStorageFileStream("files/avi.txt", FileMode.Open, FileAccess.Read, ifs);
如何在不使用对话框的情况下打开文件。
预先感谢您
什么是错误信息? – Stephan
IsolatedStorageFileStream不允许操作 – Sandile