Downloading ASCII files |
To download ASCII text files you must set the TransferMode property to Ascii using the TransferModes enumeration. All files will be downloaded relative to your current remote directory.
Example
[C#]
// set transfer mode to ascii
myFtp.TransferMode = TransferModes.Ascii;
// download all text files in current remote directory
myFtp.MDownload("*.txt");
[Visual Basic]
' set transfer mode to ascii
myFtp.TransferMode = TransferModes.Ascii
' download all text files in current remote directory
myFtp.MDownload("*.txt")
See also