Networks Project fopen (input filename)
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
printf("Please enter the name of the file: ");
if ( (in=fopen(filename,"rb")) == NULL )
printf("Could not open %s", filename);