Last active
August 29, 2015 14:25
-
-
Save Fhernd/68afc83b809ce14c58d8 to your computer and use it in GitHub Desktop.
Uso de la clase IsolatedStorageFile en C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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