posted on Sunday, June 12, 2005 10:15 PM by NenoLoje

Isolated Storage: How to determine if a file exists

// Get the desired store

IsolatedStorageFile isoFile = IsolatedStorageFile.GetUserStoreForDomain();

// Check if file exists

bool fileExists = isoFile.GetFileNames("TheFile.txt").GetLength(0) != 0);

Comments