public void Ex3() { LibraryFileLab6 FileLab = new LibraryFileLab6(FileInName, FileOutName, FilePathName); string Text = FileLab.ReadTextFromFileAndReturnIt(); string TextWithoutNums = FileLab.ReturnTextWithoutNumbers(Text); FileLab.WriteTextInFileAndCreateFile(TextWithoutNums); Console.WriteLine(); }
/// <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(); }
public void Ex4() { LibraryFileLab6 FileLab = new LibraryFileLab6(); FileLab.SetFileNameForLabDotDat(FileName); FileLab.CreateDirectory(); FileLab.CopyFileInMyDirectory(); FileLab.CreateOutFile(FilePathName + "\\" + DirectoryName, FileName); FileLab.ByteBackup(); FileLab.InfoFile(); }
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); } }