Here is the easiest way to read an entire text file into a C# string:

ASP.NET Web Hosting – 3 Months Free and Free Setup

string s = System.IO.File.ReadAllText( path );

Related posts:

  1. C# Read Text File Line-by-Line
  2. Check Valid File Path in C#
  3. Truncate File Path with Ellipsis
  4. C# Read String Line by Line
  5. Display an RTF File that's a C# Embedded Resource