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")
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:
Post a Comment