Ejemplo n.º 1
0
 public Folder(string fullName)
     : base(fullName)
 {
     _buffer  = new VBuffer();
     _files   = new FileArray();
     _folders = new FolderArray();
 }
Ejemplo n.º 2
0
 public DistributionFileArray([IgnoreDeclaration] FileArray <DistributionFileArray <T, DomainType> > parent, int index, int count)
     : this(parent.GetItemFolder(index), count)
 {
     parent.containsFileArrays = true;
     this.doNotDelete          = true;
     parent.StoreItem(index, this);
 }
Ejemplo n.º 3
0
 private static void RewriteSymbol(int index, char newSymbol, string path)
 {
     using (FileArray file = FileArray.Read(path))
     {
         file[index] = newSymbol;
     }
 }
Ejemplo n.º 4
0
        private static void Show(string path)
        {
            FileArray file = null;

            using (file = FileArray.Read(path))
            {
                for (int i = 0; i < file.Length; i++)
                {
                    Console.Write(file[i]);
                }

                Console.WriteLine();
            }
        }
Ejemplo n.º 5
0
        private static void SaveToFile(string line, string path)
        {
            FileArray file = null;

            try
            {
                file = FileArray.Create(path, line.Length);
                for (int i = 0; i < file.Length; i++)
                {
                    file[i] = line[i];
                }
            }
            finally
            {
                file.Dispose();
            }
        }