Code:
while(!feof(input)) {
if(!ferror(input)) {
if(fread(inputBuffer, 1, MSG_MAX_LEN-1, input)) {
printf("%d chars read \n", strlen(inputBuffer));
reads++;
}
}
}
I know there a few thousand chars in the file, but the code...
Leave a comment: