Add this code to Button_Click event
Use this method to read the contents of a text file into a string, supplying the path.
or use this method to read the contents of a text file into a string, supplying the path and file encoding type.Code:Dim fileReader As String fileReader = My.Computer.FileSystem.ReadAllText("C:\test.txt")
Hope I helped.Code:Dim fileReader As String fileReader = My.Computer.FileSystem.ReadAllText("C:\test.txt", _ System.Text.Encoding.UTF32)