kiruba_lks 0 Newbie Poster

Hi im new to the forum & c++.
I just want to upload a txt file to a FTP server using winsock.
Im writing a c++ application. Application makes a socket connection & communicate with FTP server. I can provide FTP commands & server responses well. I want to know what is the FTP command, which can upload a file to the server.

I dont know how to use STOR command. if i provide the command

STOR myfile.txt

it creates a new file in the server. I want to upload a local file to the server how it can be done?

Communication between server & the application.

USER username
PASS password
220 Welcome to Tripod FTP.

230- ============================================================

230-                      IMPORTANT NOTICE

PASV
227 Entering Passive Mode (209,202,252,54,82,142)

now what command should be provided to upload the file (c:\myfile.txt) to the server.
Thanks in advance.