i'm wondering if there is a way to download a .txt file directly into the users application directory, i know i can download to pre defined locations e.g. desktop/app data folders etc, but a user will run the .exe from dynamic places (wherever they have the files running) so i can't hard code it in, so far it's basic:
using (WebClient webClient = new WebClient())
{
webClient.DownloadFile("http://www.example.com/project.txt", DOWNLOAD_PATH_HERE_FROM_WHERE_THE_PROGRAM_EXECUTES);
}
I couldn't see anything from googling but it's possible i have missed the answer.
Any help would be appreciated.