---
name: "FtpGet"
section: "3"
platform: "linux"
package: "ftplib-dev"
version: "3.1-1-9"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/FtpGet"
---

# FtpGet(3)

Retreive a file from the remote system.

## NAME

FtpGet - Retreive a file from the remote system.

## SYNOPSIS

**#include \<ftplib.h\>**\

**int FtpGet(const char \****output***, const char \****path***,**

**char** *mode***, netbuf \****nControl***);**

## PARAMETERS

- **output**

  Name of a local file to receive the contents of the remote file.

- **path**

  Name of remote file to be retrieved.

- **mode**

  Specifies the transfer mode as FTPLIB\_ASCII or FTPLIB\_IMAGE.

- **nControl**

  A handle returned by FtpConnect().

## DESCRIPTION

FtpGet() copies the contents of a remote file to a local file.

## RETURN VALUE

Returns 1 if successful or 0 on error.
