mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-14 04:58:33 +00:00
Moving OpenWrite method to IcdFile for consistency
This commit is contained in:
parent
9f0a97ef9a
commit
19c0a73d7a
2 changed files with 6 additions and 8 deletions
|
|
@ -65,5 +65,11 @@ namespace ICD.Common.Utils.IO
|
||||||
|
|
||||||
File.Delete(path);
|
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()
|
public void Flush()
|
||||||
{
|
{
|
||||||
WrappedFileStream.Flush();
|
WrappedFileStream.Flush();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue