Uploads a file from the target to a file on the host.

Namespace:  Quanser.Targets
Assembly:  Quanser.Targets (in Quanser.Targets.dll)

Syntax

Visual Basic (Declaration)
Public Function UploadFileToHost ( _
	target_path As String, _
	host_path As String _
) As Integer
C#
public int UploadFileToHost(
	string target_path,
	string host_path
)
Visual C++
public:
int UploadFileToHost(
	String^ target_path, 
	String^ host_path
)
JavaScript
function uploadFileToHost(target_path, host_path);

Parameters

target_path
Type: System..::.String
The path to the file on the target.
host_path
Type: System..::.String
The path to which to write the file on the host.

Return Value

Remarks

This method uploads a file from the target, such as a MAT-file produced by the model. It writes the uploaded file to the given path on the host. This method is much simpler to use than the UploadFile(String, IUpload, Object) method, but is less flexible.

See Also