mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-12 19:25:00 +00:00
Moving OpenWrite method to IcdFile for consistency
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user