FTP Client/Server

view story

http://stackoverflow.com – when i receive the file from server and i open it only garbage is there in file.? How to remove this? I am using simple FTP client and server ,where server askes for username and password and client logs in py giving the above details than client enters the name of file to be downloaded from server and client receive the file from server and save it on the desktop.When I open it shows garbage data in that file. /* Receive File from Server */ printf("[Client] Receiveing file from Server and saving it as final.txt..."); char* fr_name = "/root/Desktop/server3.c"; FILE *fr = (HowTos)