private void WriteFooter(string fileName) { byte[] footerBytes = this.GetFooterBytes(); if (footerBytes != null) { if (File.Exists(fileName)) { this.WriteToFile(fileName, null, footerBytes, true); } } }