.\" This manual page was generated from the file FtpRead.html. .TH FtpRead 3 "06 November 1997" FTPlib .SH NAME FtpRead \- Read data from a remote file or directory. .SH "SYNOPSIS" .B "#include " .br .sp .BI "int FtpRead(void *" buf ", int " max ", netbuf *" nData ");" .SH "PARAMETERS" .TP .B "buf" Specifies the address of a buffer where received data will be written. .TP .B "max" Specifies the size of the user's buffer. .TP .B "nData" A handle returned by FtpAccess(). .SH "DESCRIPTION" .LP FtpRead copies up to max bytes of data from the specified data connection and returns it to the user's buffer. If the data connection was opened in ascii mode, no more than one line of data will be returned. .SH "RETURN VALUE" .LP Returns the number of bytes written to the user's buffer or \-1 on error or end of file.