Hello!
fread fails to read large option of data here:
if (fread (Topics, 1, file_end, fout) != file_end) {
perror (output);
return 1;
}
errno and ferror is not set. I rewrite this piece of code with
read and even make circle with fgetc, but it does not cure.
It looks like eof, but it is not true.