Get included files in your Isolated Storage File in CSharp
Description
The following code shows how to get included files in your Isolated Storage File.
Example
/*from w w w . j a v a 2 s .c om*/
using System;
using System.IO;
using System.IO.IsolatedStorage;
static class MainClass
{
static void Main()
{
using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForAssembly())
{
Console.WriteLine("Contained files include:");
string[] files = store.GetFileNames("*.*");
foreach (string file in files)
{
Console.WriteLine(file);
}
}
}
}
The code above generates the following result.