' Open file and store in String.Dim value As String = File.ReadAllText("C:\file.txt")
' Write to screen.
End ModuleFile contents.
A discussion. What should you do if you want to read in a file line-by-line instead of storing the entire content in a String? The StreamReader type is ideal for this purpose.
And Call ReadLine on StreamReader. This can lead to performance improvements over File.ReadAllText.