public FileWithHeader InitFWH(string fileName, int userHeaderSize)
        {
            FileWithHeader fwh;

            try
            {
                fwh = new FileWithHeader(fileName, userHeaderSize);
            }
            catch (FileNameConflictException)
            {
                fwh = new FileWithHeader(fileName);
                fwh.Delete();
                fwh = new FileWithHeader(fileName, userHeaderSize);
            }
            return(fwh);
        }
Пример #2
0
 public void Delete()
 {
     _fileWithHeader.Delete();
 }
Пример #3
0
 public void Delete()
 {
     _file.Delete();
 }