title: Upload a .txt file to a website page from a C# win forms app
body: <p>I have progressed in downloading a text.txt page from a webpage and editing said text page, (win forms application), but cant find the information required to now upload the edited page back to the website, I used the code below to download the text, is there a similar function to upload the edited text file to the website, the website itself is ftp and have username and password access.</p>
  
  <pre><code>        System.Net.WebClient web = new System.Net.WebClient();
          System.IO.Stream stream = web.OpenRead("http://www.webite.xx.xx/text.txt");
          using (System.IO.StreamReader reader = new System.IO.StreamReader(stream))
          {
              String text = reader.ReadToEnd();
              textBox.Text = text;
  </code></pre>