From 43f1776ba951a792f3b1cb444354fb254e20de75 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 12 Oct 2017 16:48:30 -0400 Subject: [PATCH] Adding method to open file with the given mode --- ICD.Common.Utils/IO/IcdFile.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ICD.Common.Utils/IO/IcdFile.cs b/ICD.Common.Utils/IO/IcdFile.cs index 7049faf..32e35d5 100644 --- a/ICD.Common.Utils/IO/IcdFile.cs +++ b/ICD.Common.Utils/IO/IcdFile.cs @@ -71,5 +71,11 @@ namespace ICD.Common.Utils.IO { return new IcdFileStream(File.OpenWrite(path)); } + + [PublicAPI] + public static IcdFileStream Open(string path, FileMode mode) + { + return new IcdFileStream(File.Open(path, mode)); + } } }