and if u dont use fflush(stdin),
just go to your analyse_data function, and make this correction;
Code:flin[strlen(flin)-1]='\0'; // delete \n if((fpin = fopen(flin, "rb"))== NULL) { puts(source_file_error); getch(); return 0; }
just change that getch() to getchar() and it will work fine without the fflush .
again i have no clue exactly what getch() is all about,but i do know getchar().