My program loads/saves double value into a text file using union.
double
I think I am having a buffer overflow, when I use fflush(stdin) it works,
fflush(stdin)