This article has been
excerpted from book "The Complete Visual C# Programmer's Guide" from the Authors
of C# Corner.
The .NET Framework provides the IsolatedStorageFile class to represent a store
for an assembly.
Listing 22.34 shows various aspects of IsolatedStorage namespace classes and
methods.
Listing 22.34: IsolatedStorage Example
using System;
using
System.Collections.Generic;
using System.Linq;
using System.Text;
using
System.IO.IsolatedStorage;
using System.IO;
namespace
IsolatedStorageFile_Class
{
class Program
{
static void
Main(string[] args)
{
// isolated storage
// in System.IO.IsolatedStorage
namespace
// Obtain a store
IsolatedStorageFile store1
=
IsolatedStorageFile.GetUserStoreForDomain();
// you can also use static GetStore
methods like below
/*
IsolatedStorageFile storefile1 = IsolatedStorageFile.GetStore(
IsolatedStorageScope.User |
IsolatedStorageScope.Assembly,
null,
null);
IsolatedStorageFile storefile1 = IsolatedStorageFile.GetStore(
IsolatedStorageScope.User |
IsolatedStorageScope.Assembly |
IsolatedStorageScope.Domain,
null,
null);
IsolatedStorageFile storefile1 = IsolatedStorageFile.GetStore(
IsolatedStorageScope.User |
IsolatedStorageScope.Assembly |
IsolatedStorageScope.Roaming,
null,
null);
IsolatedStorageFile storefile1 = IsolatedStorageFile.GetStore(
IsolatedStorageScope.User |
* IsolatedStorageScope.Assembly |
IsolatedStorageScope.Domain |


Osman GumusPosted Nov 19, 2010, 10:02 AM
I guess there a few mistakes such as while creating and deleting file3.txt u used store1 instead of store2 or I didn't understand. And deleting file3.txt is not possible. Could u send this code again?
justitPosted Mar 26, 2010, 4:06 AM
ds lite dsi card nintendo dsi TopToy DSTTi Multimedia Card for NDSi/NDS/NDS Lite (Supports SDHC)-Genuine NDSTT.COM Ver Acekard 2i AK2i Multimedia SDHC ds dstt ds tt card dstti Cards r4i r4 r4 adapter r4 card r4i card ez flash nds console acekard 2 ak2i dsi 1.4 acekard AK2i m3i zero for dsi ds m3