Computing.Net > Forums > Programming > Simple FTP program written in C.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Simple FTP program written in C.

Reply to Message Icon

Name: olly
Date: July 13, 2003 at 00:38:02 Pacific
OS: linux/windws
CPU/Ram: N/A
Comment:

Hello im trying to build a Simple FTP program written in C.

So far I have made a text file FTP program that prompts the user for the name of the file, writes that name as a character string to a buffer, then writes from the buffer to the socket.

Opens a text file for reading, reads the text from that file to a buffer then writes from the buffer to the socket.

The recieving program reads the filename from the socket, opens a new file of that name, reads the contents of the file from the socket and writes them to a new file.

for this simple text ftp im using:

FILE *fp;
fopen
fclose 
read
write
fputs
fgets


However I would like to expand my FTP program to read binary files and transfer them. I have no idea how to do that though.

Please help me :-)




Sponsored Link
Ads by Google

Response Number 1
Name: Sord
Date: July 14, 2003 at 21:15:21 Pacific
Reply:

That is a bit complicated to just tell you but if you
download the source for wget, curl, or ncftp it may
help you. Good luck.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Simple FTP program written in C.

String in C (confusing) www.computing.net/answers/programming/string-in-c-confusing/749.html

Playing an mp3 in a c++ program www.computing.net/answers/programming/playing-an-mp3-in-a-c-program/4998.html

C programming help ? www.computing.net/answers/programming/c-programming-help-/1720.html