Moving OpenWrite method to IcdFile for consistency

This commit is contained in:
Chris Cameron
2017-10-12 10:47:40 -04:00
parent 9f0a97ef9a
commit 19c0a73d7a
2 changed files with 6 additions and 8 deletions

View File

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

View File

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