using (System.IO.IsolatedStorage.IsolatedStorageFile isf = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication()) { if (isf.FileExists(fileName)) { using(System.IO.IsolatedStorage.IsolatedStorageFileStream fs = isf.OpenFile(fileName,FileMode.Open)) { Trips = ReadTrips(fs); } } }
转载于:https://www.cnblogs.com/binaryworms/archive/2012/08/02/2620424.html