How to download FTP Files from Previous date to Current Date
<p>I can download ftp files from C# but it downloads the current date file. I need to download the files from previous date to current date. For example, my files are:</p>

<pre><code>xys04-02-2011.zip xys04-03-2011.zip xys04-04-2011.zip
</code></pre>

<p>I am trying the following code in console application:</p>

<pre><code>string defaultLocalFolder_MCX = "C:\\";

FastZip fzMCX = new FastZip();

fzMCX.ExtractZip(
    defaultLocalFolder_MCX + "\\xys03-31-2011.zip", 
    defaultLocalFolder_MCX, "");

FtpWebRequest requestFileDownload = 
    (FtpWebRequest)WebRequest.Create("ftp://localhost/Source/" + fileName);
requestFileDownload.Credentials = new NetworkCredential("test", "test");
requestFileDownload.Method = WebRequestMethods.Ftp.DownloadFile;

FtpWebResponse responseFileDownload = 
    (FtpWebResponse)requestFileDownload.GetResponse();

Stream responseStream = responseFileDownload.GetResponseStream();
FileStream writeStream = new FileStream(localPath + fileName, FileMode.Create);

int Length = 2048;
Byte[] buffer = new Byte[Length];
int bytesRead = responseStream.Read(buffer, 0, Length);

while (bytesRead &gt; 0)
{
    writeStream.Write(buffer, 0, bytesRead);
    bytesRead = responseStream.Read(buffer, 0, Length);
}

responseStream.Close();
writeStream.Close();

requestFileDownload = null;
responseFileDownload = null;
</code></pre>
