title: C#: How to download and upload file from Sharepoint Teamsite Site
body: <p>I have a Sharepoint Teamsite where I have a file stored in a folder, I want to download it, and upload a new file back to another folder on the same site.</p>
  
  <p>To be precise, my site url is <code>https://sharepoint.wsx.sg/sites/op/SitePages/Home.aspx</code>, I would like to download the file <code>conf.json</code> which is located at <code>/files/config/conf.json</code> , then my C# WPF program will do it's thing, and upload a new file to <code>/files/result/result.json</code> .</p>
  
  <p>How would I be able to achieve this using C# code? I read about a WebDav protocol, but couldn't really figure out how to use it, or if I need to download any packages.</p>
  
  <p>Wondering if anyone could offer an alternative method of doing so, or point me to some helpful links, would greatly appreciate it!</p>
  
  <p>Thanks!</p>