CSharp examples for File IO:Text File
Read Text To End
using System.Threading.Tasks; using System.Text; using System.Linq; using System.IO;// w ww . j a va2 s .c o m using System.Collections.Generic; using System; public class Main{ public static string ReadTextToEnd(this Stream stream) { var reader = new StreamReader(stream); var result = reader.ReadToEnd(); return result; } }