If think that the problem is in your if statement. Here is an example of what you can do:
Imports System.IO
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If My.Computer.FileSystem.FileExists("Your Path") = True Then
TextBox1.Text = My.Computer.FileSystem.ReadAllText("Your Path")
Else
MsgBox("ERROR - File Not Found")
End If
End Sub
End Class
Notice the change I did in the If Statement. Hoped it helped.
2
solved Browse for a file and place the data in the text box [closed]