Create Directory in your Isolated Storage File in CSharp
Description
The following code shows how to create Directory in your Isolated Storage File.
Example
// www . j a v a 2 s . co m
using System;
using System.IO;
using System.IO.IsolatedStorage;
static class MainClass
{
static void Main()
{
using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForAssembly())
{
store.CreateDirectory("MyFolder");
Console.WriteLine("Current size: " + store.CurrentSize.ToString());
Console.WriteLine("Scope: " + store.Scope.ToString());
}
}
}
The code above generates the following result.