I have the following code in visual studio 2010:
TextBox1.Text = My.Computer.FileSystem.ReadAllText("C:\Users\Baby\Desktop\Simulator website\Resources\TextFile.txt")
It reads the text in the textfile and displays it in the textbox. However, this link only works on my computer. How do I change the code so that when published online, it still works on anybody's PC? I think i need to refer to a relative path, but do not know how this should be done.
View Complete Post