Gentee Programming Language > Documentation > Libraries | Download documentation |
The method retrieves files from the FTP server.
uint ftp.getfile( str filename, buf databuf, uint flag )
filename The downloaded file name. databuf The received data buffer. Data are not stored on a drive. flag Additional flags. $FTP_BINARY A binary file is downloaded $FTP_TEXT A text file is downloaded. This is a default mode. $FTP_STR Appends zero to the end of received data.
uint ftp.getfile( str srcname, str destname, uint flag )
srcname The downloaded file name. destname A new file name. flag Flags. $FTP_BINARY A binary file is downloaded $FTP_TEXT A text file is downloaded. This is a default mode. $FTP_CONTINUE Proceeds with retrieving. $FTP_SETTIME Sets the same file times as on the FTP server.
Nonzero if initialization was successful; otherwise 0.
See also![]() |
![]() Copyright © 2004-2006 Gentee Inc. All rights reserved. ![]() |