Gentee Programming Language > Documentation > Libraries Download documentation

ftp.getfile

The method retrieves files from the FTP server.
 
uint ftp.getfile(
      str   filename,
      buf   databuf,
      uint   flag
)

Parameters

filenameThe downloaded file name.
databufThe received data buffer. Data are not stored on a drive.
flagAdditional flags.
$FTP_BINARYA binary file is downloaded
$FTP_TEXTA text file is downloaded. This is a default mode.
$FTP_STRAppends zero to the end of received data.



 
uint ftp.getfile(
      str   srcname,
      str   destname,
      uint   flag
)

Parameters

srcnameThe downloaded file name.
destnameA new file name.
flagFlags.
$FTP_BINARYA binary file is downloaded
$FTP_TEXTA text file is downloaded. This is a default mode.
$FTP_CONTINUEProceeds with retrieving.
$FTP_SETTIMESets the same file times as on the FTP server.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Internet


 Copyright © 2004-2006 Gentee Inc. All rights reserved.