VeriStand .NET API Reference

FTPBase.DownloadFile Method

Downloads the specified file from the FTP server and copies it to the Destination directory. This method uses a buffer of a size specified by BufferLength.

Namespace: NationalInstruments.VeriStand.StimulusProfileDefinitionApi
Assembly: NationalInstruments.VeriStand.RealTimeSequenceDefinitionApi (in NationalInstruments.VeriStand.RealTimeSequenceDefinitionApi.dll) Version: 2013.0.0.0 (2013.0.0.0)
Visual Basic (Declaration)
Protected Function DownloadFile ( _
	sourceFilePath As String, _
	stream As FileStream _
) As String
C#
protected string DownloadFile(
	string sourceFilePath,
	FileStream stream
)
Visual C++
protected:
String^ DownloadFile(
	String^ sourceFilePath, 
	FileStream^ stream
)

Parameters

sourceFilePath
Type: System.String
The fully qualified path to the file.
stream
Type: System.IO.FileStream
The stream to which to write data from the buffer. This method does not close the stream.

Return Value

A status message sent from the FTP server.

See Also

Log in to get a better experience