How do I make sure that the downloaded file myfileLocal.wav matches myfileInServer.wav?
using System.Net;
WebClient webClient = new WebClient();
webClient.DownloadFile("http://example.net/myfileInServer.wav", @"c:\myfileLocal.wav");
Would it be a checksum, or bytesize? Just want to make sure it in fact is a wav file, and the correct one.
Edited for clarification: This program will not run on my machine, but rather on clients. I need to make sure that the downloaded file matches what the program requires.
I have the file locally, and what I really want to find out is if the file in their machine matches the one that I have, in other words the intended file. The one in the server might change.