我一直在嘗試使用獨立存儲在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