Hello,
i am trying to download files and save them in defined name but i am failing

WebClient client = new WebClient();
client.DownloadFile(remoteFilename, localFilename);

now i have two files
links.txt
names.txt

links.txt

site/file1.html
site/file2.html

names.txt

pc
phone

how can i do this?
download file1 and save it as pc
download file2 and save it as phone

i am trying trough loop but file pc is just overwriten.
thanks in advance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.