feat: Added WriteAllByte method to IcdFile class.

This commit is contained in:
Laura Gomez
2020-01-03 15:27:31 -05:00
parent d4ef4c3e1a
commit b5fc25de7c
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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);
}
}
}