diff --git a/ICD.Common.Utils/IO/IcdFile.cs b/ICD.Common.Utils/IO/IcdFile.cs index 1e091f3..7049faf 100644 --- a/ICD.Common.Utils/IO/IcdFile.cs +++ b/ICD.Common.Utils/IO/IcdFile.cs @@ -65,5 +65,11 @@ namespace ICD.Common.Utils.IO File.Delete(path); } + + [PublicAPI] + public static IcdFileStream OpenWrite(string path) + { + return new IcdFileStream(File.OpenWrite(path)); + } } } diff --git a/ICD.Common.Utils/IO/IcdFileStream.cs b/ICD.Common.Utils/IO/IcdFileStream.cs index 83ddb78..a4c4263 100644 --- a/ICD.Common.Utils/IO/IcdFileStream.cs +++ b/ICD.Common.Utils/IO/IcdFileStream.cs @@ -22,14 +22,6 @@ namespace ICD.Common.Utils.IO { } - public static IcdFileStream OpenWrite(string path) - { - if (path == null) - throw new ArgumentNullException("path"); - - return new IcdFileStream(File.OpenWrite(path)); - } - public void Flush() { WrappedFileStream.Flush();