mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
feat: Added WriteAllByte method to IcdFile class.
This commit is contained in:
@@ -5,6 +5,8 @@ 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).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Added
|
||||||
|
- Added WriteAllByte method on IcdFile.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Added MathUtils methods for converting to and from percentages
|
- Added MathUtils methods for converting to and from percentages
|
||||||
|
|||||||
@@ -100,5 +100,11 @@ namespace ICD.Common.Utils.IO
|
|||||||
{
|
{
|
||||||
return new IcdStreamWriter(File.AppendText(path));
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user