Reading A File - Jetter JC-120MC User Manual

Table of Contents

Advertisement

JC-120MC

Reading a file

Introduction
Function declaration
Function parameters
Return value
Jetter AG
This function lets you read the content of a file from a remote network node
and copy it to the local file system of the controller.
Function
FtpFileRead(FtpConnection:Handle,
Description of the function parameters:
Parameter
FtpConnection
ServerFile
ClientFile
If the returned value is negative, an error has occurred. If the returned value is
0, the controller was able to read the file and store it locally.
Return value
0
No error
-1
Invalid handle
-2, -6
Error when storing the file locally
-3, -5, -7, -8
Communication error, there is, for example, no response from
FTP server
-4
Error message from FTP server, for example, file does not
exist
Const Ref
ServerFile: String,
Const Ref
ClientFile: String):Int;
Value
Handle
File name
File name
FTP client
Remarks
Value returned by the
function FtpConnect()
Name of the file in the file
system of the FTP server,
which the controller is to
read
File name, as which the
controller is to save the file
read in the local file system
167

Advertisement

Table of Contents
loading

Table of Contents