Get new line string

image_pdfimage_print
   
 

//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);
    }
}
    

   
     


This entry was posted in Data Types. Bookmark the permalink.