Hi guys,
I have some code which needs to transfer binary files to a remote server. My problem is, as I read the file from my local machine as I perform the transfer, I get a premature EOF so only a small part of the file is actually transferred.
My loop is as follows:
Code:
while ((c = fgetc(fs)) != EOF) {
I checked the last few bytes that I transfer and they are 00 FF. Could the FF be being interprested as EOF? If so, if there a way around this?
Thanks for any help!