I'm programming in code::blocks and I got problem reading file here is the code:
char fileName[] ="";
fflush(stdin);
E11: printf("\n\tEnter the @ Mac (X:X:X:X:X:X) in Hex :");
gets(MAC);
E12: printf("\n\tEnter file name:");
gets(fileName);
FILE* fichier;
fichier = fopen(fileName,"r");
if (fichier == NULL)
{
printf("Error! Try Again");
goto E12;
}
else
{
printf("sending Data....");
//TODO..
}