// Start receiving a file to memory ftp.ReceiveMemoryFile( "test.txt", 0, XceedFtpLib.EXFReceiveMemoryOptions.fmoSingleBlock );
// In the line above, we chose to receive the data in a single // block of data. So the ReceivingMemoryFile event will only // be triggered once. You can change the value of the third // parameter to receive the data in many smaller chunks, // whenever data is received by the Xceed FTP Library.
// Disconnect from the FTP server ftp.Disconnect(); } catch( System.Runtime.InteropServices.COMException except ) { MessageBox.Show( except.ToString() ); }