public void Write(string fileName, WriterParameters parameters)
 {
     using (var stream = GetFileStream(fileName, FileMode.Create, FileAccess.ReadWrite, FileShare.None)) {
         Write(stream, parameters);
     }
 }