Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active August 29, 2015 14:25
Show Gist options
  • Save Fhernd/68afc83b809ce14c58d8 to your computer and use it in GitHub Desktop.
Save Fhernd/68afc83b809ce14c58d8 to your computer and use it in GitHub Desktop.
Uso de la clase IsolatedStorageFile en C#.
// OrtizOL - xCSw - http://ortizol.blogspot.com
using System;
using System.IO.IsolatedStorage;
namespace Receta.CSharp.R0518
{
public class UsoIsolatedStorageFile
{
public static void Main()
{
Console.WriteLine(Environment.NewLine);
using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User |
IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly, null, null))
{
Console.WriteLine("Creación de directorios");
isoStore.CreateDirectory("DirectorioSuperior");
isoStore.CreateDirectory("DirectorioSuperior/Subdirectorio");
isoStore.CreateDirectory("DirectorioSuperior2/Subdirectorio");
Console.WriteLine("Creación de archivos");
isoStore.CreateFile("ArchivoTexto.txt");
isoStore.CreateFile("DirectorioSuperior/Subdirectorio/ArchivoTexto.txt");
}
Console.WriteLine(Environment.NewLine);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment