Steps to get up and running in 5 mins
using System;
using System.Text;
using FileStorage;
using FileStorage.Behaviours;
 
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var containerName = "5mins";
            FileStorageFacade.Create(containerName, CreateFileStorageBehaviour.IgnoreWhenExists);
            var identifier = new Guid(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
            FileStorageFacade.StoreString(containerName, identifier, "Hello world", AddFileBehaviour.OverrideWhenAlreadyExists);
            var encoding = new ASCIIEncoding();
            var value = encoding.GetString(FileStorageFacade.GetFileByteData(containerName, identifier));
            Console.WriteLine(value);
            Console.WriteLine("Press a key to continue");
            Console.ReadKey();
        }
    }
}
  • 6 Run it

Last edited Mar 14, 2009 at 9:40 AM by barkgj, version 1

Comments

No comments yet.