the problem is that when I put the output in the file there must be any character which is not write well because then try decrypting then halfway through the process reaches a point where everything goes wrong, a part is decypted good and some not. Hence i want to know how to print it well into the file.
I try to used fwrite and fread like in Read/Write to binary files in C but it does not solved my problem