Hi there sorry if this is a repost, I am in a networking course and have a question (with many more to come).
First off a little bit about the proj, its an FTP stop and wait program.
As of right now I have created the sockets and have been able to connect and send txt. No I am trying to send data. My first step is taken a file name inputted by the user. Question is do i ask for filename or filepath
Code:printf("Please enter the name of the file: "); bzero(filename,256); fgets(filename,255,stdin); if ( (in=fopen(filename,"rb")) == NULL ) { printf("Could not open %s", filename); exit(1); } else printf("File exists.");



LinkBack URL
About LinkBacks



