The source code of the Stenway ReliableTXT reference library can be found on GitHub
using System;
using Stenway.ReliableTxt;
namespace ReliableTxtTestApp
{
class Program
{
public static void Main(string[] args)
{
var doc = new ReliableTxtDocument("Line1", "Line2", "Line3");
doc.Encoding = ReliableTxtEncoding.Utf16Reverse;
doc.Save("Lines.txt");
}
}
}