string s = System.IO.File.ReadAllText(path);
In Vb.net - Grab the entire text file into a Vb.Net string
[vbnet]Dim s As String
s = System.IO.File.ReadAllText(path)[/vbnet]
Snippet to Read entire Text File into String - with C# and VB.Net
Here is the easiest way to read an entire text file into a C# string: