IsolatedStorageFile.GetFileNames : IsolatedStorageFile « System.IO.IsolatedStorage « C# / C Sharp by API






IsolatedStorageFile.GetFileNames

  

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);
            }
        }
    }
}

   
    
  








Related examples in the same category

1.IsolatedStorageFile.CreateDirectory
2.IsolatedStorageFile.GetUserStoreForAssembly()