I would like to know how to download a file from a url into your downloads folder. I already tried doing this:
private void guna2Button1_Click(object sender, EventArgs e)
{
using (var client = new WebClient())
{
client.DownloadFile("https://test.com/hello.txt", "hello.txt");
}
}
When I actually put in a valid url and file, it would go where my project would be located. I would like it to be saved in my downloads folder, how would I do this?