Get new line string
//http://www.bouncycastle.org/ //MIT X11 License using System.IO; using System.Text; public class MainClass { static string GetNewLine() { MemoryStream buf = new MemoryStream(); StreamWriter w = new StreamWriter(buf, Encoding.ASCII); w.WriteLine(); w.Close(); byte[] bs = buf.ToArray(); return Encoding.ASCII.GetString(bs, 0, bs.Length); } }
String