Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
QuestionUsing StreamReader to read an unkown amount of lines / data. Pin
noiser30-Jul-09 15:49
noiser30-Jul-09 15:49 
AnswerRe: Using StreamReader to read an unkown amount of lines / data. Pin
Super Lloyd30-Jul-09 18:27
Super Lloyd30-Jul-09 18:27 
GeneralRe: Using StreamReader to read an unkown amount of lines / data. Pin
noiser31-Jul-09 1:55
noiser31-Jul-09 1:55 
GeneralRe: Using StreamReader to read an unkown amount of lines / data. Pin
Super Lloyd31-Jul-09 2:05
Super Lloyd31-Jul-09 2:05 
GeneralRe: Using StreamReader to read an unkown amount of lines / data. Pin
noiser1-Aug-09 8:34
noiser1-Aug-09 8:34 
GeneralRe: Using StreamReader to read an unkown amount of lines / data. Pin
Super Lloyd1-Aug-09 16:52
Super Lloyd1-Aug-09 16:52 
GeneralRe: Using StreamReader to read an unkown amount of lines / data. Pin
noiser1-Aug-09 17:38
noiser1-Aug-09 17:38 
QuestionDownloading unknown number of files from web server Pin
steve_rm30-Jul-09 14:26
steve_rm30-Jul-09 14:26 
Hello,

VS 2008 SP1

I am using the web client to download a file. Which works ok.

However, now I have to download many, and the number of files to download will change everyday. And will not know the name of the files.

I am not sure how I can get the web client to know which files have been downloaded or not? I was thinking of using a for loop to download each file. But I will never know how many there are to download?

The web client could download the same file twice?
Many thanks for any suggestions,

private void btnStartDownload_Click(object sender, EventArgs e)
{
    WebClient client = new WebClient();
    client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
    client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
    
    // Starts the download
    client.DownloadFileAsync(new Uri("SomeURLToFile"), "SomePlaceOnLocalHardDrive");

    btnStartDownload.Text = "Download In Process";
    btnStartDownload.Enabled = false;
}

AnswerRe: Downloading unknown number of files from web server Pin
Christian Graus30-Jul-09 14:44
protectorChristian Graus30-Jul-09 14:44 
QuestionList<string> Help</string> Pin
Gregory Bryant30-Jul-09 13:13
Gregory Bryant30-Jul-09 13:13 
AnswerRe: List Help Pin
Christian Graus30-Jul-09 13:55
protectorChristian Graus30-Jul-09 13:55 
QuestionUpdating data in data set and data table. Pin
Omar Akhtar Sheikh30-Jul-09 11:29
Omar Akhtar Sheikh30-Jul-09 11:29 
AnswerRe: Updating data in data set and data table. Pin
nelsonpaixao30-Jul-09 14:11
nelsonpaixao30-Jul-09 14:11 
QuestionWeb Services Issue Pin
caksabre230-Jul-09 10:24
caksabre230-Jul-09 10:24 
AnswerRe: Web Services Issue Pin
Robin_Roy30-Jul-09 17:04
Robin_Roy30-Jul-09 17:04 
Questionimporting system.deployment Pin
Vivek Vijayan30-Jul-09 9:17
Vivek Vijayan30-Jul-09 9:17 
AnswerRe: importing system.deployment Pin
Dave Kreskowiak30-Jul-09 9:35
mveDave Kreskowiak30-Jul-09 9:35 
AnswerRe: importing system.deployment Pin
Abhishek Sur30-Jul-09 10:15
professionalAbhishek Sur30-Jul-09 10:15 
GeneralRe: importing system.deployment Pin
Vivek Vijayan30-Jul-09 22:20
Vivek Vijayan30-Jul-09 22:20 
GeneralRe: importing system.deployment Pin
Abhishek Sur30-Jul-09 23:09
professionalAbhishek Sur30-Jul-09 23:09 
QuestionScreenshot after WebBrowser Navigates Pin
VengefulSakhmet30-Jul-09 8:30
VengefulSakhmet30-Jul-09 8:30 
AnswerRe: Screenshot after WebBrowser Navigates Pin
0x3c030-Jul-09 9:12
0x3c030-Jul-09 9:12 
GeneralRe: Screenshot after WebBrowser Navigates Pin
VengefulSakhmet4-Aug-09 5:22
VengefulSakhmet4-Aug-09 5:22 
QuestionCreating a updater that will download and update installation files Pin
steve_rm30-Jul-09 7:54
steve_rm30-Jul-09 7:54 
AnswerRe: Creating a updater that will download and update installation files Pin
Henry Minute30-Jul-09 8:20
Henry Minute30-Jul-09 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.