it is not even connecting with the server.wats wrong man
Code:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <conio.h>
#include <ftplib.h>
//int main()
//{
int main(){
int a;
int b;
int connectED, logIN;
netbuf *aBuffer;
netbuf *n=aBuffer;
char *user="codeshanpk";
char *password ="pass";
char * host="ftp.code.shan.pk:21";
char *outputfile="danish.txt";
const char *pathfile="/httpdocs/dhagc.txt";
const char *path="/httpdocs";
FtpInit();
b=connectED=FtpConnect(host, &n);
printf("%d",b);
logIN=FtpLogin(user, password, n);
a=FtpChdir(path, n);
printf("%d",a);
FtpGet(outputfile,pathfile,FTPLIB_ASCII,n);
FtpLastResponse(n);
/*int x;
printf("Welcome to DHA (Danish,Hassan and Affan) Gaming Zone!\n");
printf("You have to register First in order to use our Game zone\n");
printf("\nPress 1 to open our website\n");
scanf("%d",&x);
if (x==1)
{
system("start firefox.exe code.shan.pk/");
}
*/
}