using System;using System.IO;using System.IO.IsolatedStorage;
using (IsolatedStorageFile MyIsolatedStorageFile = IsolatedStorageFile.GetUserStoreForAssembly()) { MyIsolatedStorageFile.CreateDirectory("Nathan"); using (Stream MyStream = new IsolatedStorageFileStream("ExpDet.txt", FileMode.Create, MyIsolatedStorageFile)) { StreamWriter MyStreamWriter = new StreamWriter(MyStream); MyStreamWriter.WriteLine("Nathan Soft Ware Engineer"); MyStreamWriter.Flush(); } Console.WriteLine(MyIsolatedStorageFile.CurrentSize.ToString()); Console.WriteLine(MyIsolatedStorageFile.Scope.ToString()); string[] MyFiles = MyIsolatedStorageFile.GetFileNames("*.*"); foreach (string Myfile in Myfiles) { Console.WriteLine(Myfile); } }