Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement