Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 :-)

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.

![]() |
![]() |
![]() |

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