mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-11 18:54:55 +00:00
feat: Adding write string method to IcdFileStream
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user