Read Text To End - CSharp File IO

CSharp examples for File IO:Text File

Description

Read Text To End

Demo Code


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

Related Tutorials