Tuesday, November 22, 2011

VB.NET READ TEXT FILE

Imports System.IO.File

Dim fileText As String = My.Computer.FileSystem.ReadAllText("c:\sample.txt")
        Console.WriteLine(fileText)
OR
        Button1.Text = System.IO.File.ReadAllText("c:\sample.txt")

No comments: