Do you give me an example about connecting an ftp with c.
Do you give me an example about connecting an ftp with c.
Have your researched any FTP c libraries for this, such as ftplib?
ftplib
I am new at c, i searched for examples but i just found c++ or c# examples.
Thanks by the way, i'll check it now.
You could also use libcurl.
Mainframe assembler programmer by trade. C coder when I can.
On Windows, you don't need anything.
Just use FTP apis.
@Alex31; but i want to give this program to people, they shouldn't see or find out the password.
I thought i can encrypt the c code but i need to decrypt it for connecting ftp, i am stucked here.
If you are using anonymous you can, i guess, hard code that, but for more secure accounts, just have the use input those at the command line as arguments. You should never hard code anything thought to be secure as far as account logins go, unless for debugging purposes.
If my typing is off, sorry i'm on a train.....
I don't know how to use ftp apis, if you can give me an example, i'll be happy.
For being clear, i'll say again; i want to save password in program source.
If you use any FTP library you are making use of their API. If you are not sure how to work with APIs ( application program interface) with FTP then you are biting off more than you can chew here writing your own FTP client. Also if you insist in hard-coding secure passwords in your program, you must be careful how you do this as anyone can run the command 'strings' against your source code to pull out any strings within your code, this includes function names and text surrounded by "".