diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eef7e0..f53feff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] - +### Added + - Added WriteAllByte method on IcdFile. + ### Added - Added MathUtils methods for converting to and from percentages - Added enum extensions for finding the inclusion and exclusion of enum flags diff --git a/ICD.Common.Utils/IO/IcdFile.cs b/ICD.Common.Utils/IO/IcdFile.cs index c31696e..eff436f 100644 --- a/ICD.Common.Utils/IO/IcdFile.cs +++ b/ICD.Common.Utils/IO/IcdFile.cs @@ -100,5 +100,11 @@ namespace ICD.Common.Utils.IO { return new IcdStreamWriter(File.AppendText(path)); } + + public static void WriteAllBytes(string path, byte[] bytes) + { + using (FileStream stream = File.OpenWrite(path)) + stream.Write(bytes, 0, bytes.Length); + } } }