I am trying to read a multiple line notepad document and display the text in a multiline text box.
Here is the code I am using:
Dim messageString As String = My.Computer.FileSystem.ReadAllText(c:\test123.txt).ToString
infoTextBox.Text = messageString
Unfortunatly if the notepad document has multiple lines it shows as a black square character at the end of each line. It then displays that black character in the text box instead of creating a new line. When I debug and step through the code and copy the black box from the messageString variable and then paste it into a text editor or even visual studio it creates a line!
Any help would be greatly appreciated.
Thanks,
Nathan