Re: Timeout Property (General questions)

by woddrazen, (5785 days ago) @ kdcarlisle

Kent,


Looking at your code I see that you read ListNames output in memory stream and then convert it to string.

Why don't you use ListItem Property instead? ListItem Property hold string result from ListNames and ListDir Method.

Can you maybe try something like this without memory stream:[code]...
ftp.ListNames(txtLocation.Text);
string tmpFileName = ftp.ListItem;
MessageBox.Show( File: + tmpFileName);
...[/code]
Let us know how it goes.


Drazen

locked

Complete thread: