Пример #1
0
        public void Ex3()
        {
            LibraryFileLab6 FileLab         = new LibraryFileLab6(FileInName, FileOutName, FilePathName);
            string          Text            = FileLab.ReadTextFromFileAndReturnIt();
            string          TextWithoutNums = FileLab.ReturnTextWithoutNumbers(Text);

            FileLab.WriteTextInFileAndCreateFile(TextWithoutNums);
            Console.WriteLine();
        }
Пример #2
0
        /// <summary>
        /// FileOutName имя файла куда метод запишет byte and float
        /// FileInName имя файла куда метод запишет только float из файла FileOutName
        /// </summary>
        public void Ex2()
        {
            LibraryFileLab6 FileLab = new LibraryFileLab6();

            FileLab.SetNameFileForWrite(FileOutName);
            FileLab.SetNameFileForRrite(FileInName);
            FileLab.WriteInBinaryFileSetOfPairs();
            FileLab.ReadInBinaryFileSecondNumberAndWriteItinNewBinaryFile();
        }
Пример #3
0
        public void Ex4()
        {
            LibraryFileLab6 FileLab = new LibraryFileLab6();

            FileLab.SetFileNameForLabDotDat(FileName);
            FileLab.CreateDirectory();
            FileLab.CopyFileInMyDirectory();
            FileLab.CreateOutFile(FilePathName + "\\" + DirectoryName, FileName);
            FileLab.ByteBackup();
            FileLab.InfoFile();
        }
Пример #4
0
        public void Ex5()
        {
            LibraryFileLab6 FileLab = new LibraryFileLab6();

            if (FileName == ".")
            {
                foreach (string files in Directory.GetFiles(FilePathName))
                {
                    Console.WriteLine(Path.GetFileName(files));
                }
            }
            else
            {
                FileLab.SetStructForBMPFileAndShowIt(FileName);
            }
        }