mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 21:24:58 +00:00
feat: Adding write string method to IcdFileStream
This commit is contained in:
@@ -3,6 +3,7 @@ using Crestron.SimplSharp.CrestronIO;
|
|||||||
#else
|
#else
|
||||||
using System.IO;
|
using System.IO;
|
||||||
#endif
|
#endif
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
namespace ICD.Common.Utils.IO
|
namespace ICD.Common.Utils.IO
|
||||||
{
|
{
|
||||||
@@ -32,5 +33,11 @@ namespace ICD.Common.Utils.IO
|
|||||||
WrappedFileStream.Dispose();
|
WrappedFileStream.Dispose();
|
||||||
#endif
|
#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