mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
feat: Adding write string method to IcdFileStream
This commit is contained in:
parent
9e6c7ca6b3
commit
e01bc9ede6
1 changed files with 7 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ using Crestron.SimplSharp.CrestronIO;
|
|||
#else
|
||||
using System.IO;
|
||||
#endif
|
||||
using System.Text;
|
||||
|
||||
namespace ICD.Common.Utils.IO
|
||||
{
|
||||
|
|
@ -32,5 +33,11 @@ namespace ICD.Common.Utils.IO
|
|||
WrappedFileStream.Dispose();
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Write(string data, Encoding encoding)
|
||||
{
|
||||
byte[] info = encoding.GetBytes(data);
|
||||
WrappedFileStream.Write(info, 0, info.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue