So, I tried loading a file:
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
RichTextBox1.LoadFile("My.Computer.FileSystem.SpecialDirectories.MyDocuments.**1.txt**", RichTextBoxStreamType.PlainText)
End Sub
The 1.txt is errored and I don't know how to make it work
when it loads that file (doesn't matter what is written in it just the name "1" is needed) just the location to users documents, load that 1.txt file and show lets say a message box.
As I said before the 1.txt is errored and I don't know how to make it work.
My.Computer.FileSystem.SpecialDirectories.MyDocumentsis a property whose value contains the path of the Documents folder. You need to use that property to get that path and combine that with the file name to create the path of the file. Instead, you are using that property name as a literal string. I think it should be fairly obvious that"My.Computer.FileSystem.SpecialDirectories.MyDocuments.1.txt"is not the actual path of a file on your computer. What you're doing is like if someone ask you your age and you said "I am my age years old".