If (OpenFileDialog1.ShowDialog = DialogResult.OK) Then If System.IO.File.Exists(OpenFileDialog1.FileName) = True Then Dim objReader As New System.IO.StreamReader(OpenFileDialog1.FileName.ToString.Trim) RichTextBox1.Text = objReader.ReadToEnd objReader.Close() Else MsgBox("File Does Not Exist") End If End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)