Place your text file under bin/debug for the following , otherwise you can place the text box any where and set the path.
Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim EntireFile As String
oRead = IO.File.OpenText(Application.StartupPath() + "/test.txt")
EntireFile = oRead.ReadToEnd()
No comments:
Post a Comment