0
我有一個項目,我添加一個名爲「測試」的數據文件到項目及用途:找不到數據文件IsolatedStorageFile
IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();
if (!isf.FileExists("Test"))
return;
imgStream = isf.OpenFile("Test", FileMode.Open, FileAccess.Read);
BinaryReader r = new BinaryReader(imgStream);
int count = r.ReadInt32();
for (int i = 0; i < count; ++i)
{
..........................
}
調試時,應用程序無法找到數據文件在該項目中,!isf.FileExists("Test")
返回true。爲什麼?