I am trying to display the contents of a text file hosted on a server within a richtextbox but am having an error stating URI formats are not supported.
If I access the txt file from my local drive I can do the following:
public void ReadFile() {
TextReader reader = File.OpenText(@"help.txt");
richtextBox1.Text = reader.ReadToEnd();
}
How can i have the same outcome with a remote file?
The txt file is accessed via http. the Url for example is:
Http://www.example.com/help.txt