Read Text File in a single Statement : Text File Read « File Directory « VB.Net






Read Text File in a single Statement

Read Text File in a single Statement
  
Imports System
Imports System.Windows.Forms
Imports System.IO

Public Class MainClass

   Shared Sub Main()
        Dim plainTextFileName As String = "test.txt"


        Console.WriteLine( File.ReadAllText(plainTextFileName))

   End Sub 

End Class

           
         
    
  








Related examples in the same category

1.Read Text File ContentRead Text File Content
2.Open Text file and count the lines
3.Text File content outputText File content output
4.Read and Write Files
5.Read Text from a File
6.Read lines from a text file
7.Open text file to read
8.Read Text from a File
9.Read line by line from a text file
10.Read Text from a File with DO Until