Unnamed
public text v1 · immutableint main(void)
{
char path[PATHMAX];
char bin[NB_BITS_MAX];
char c;
int i;
FILE *fp, *fo;
/* printf("Entrer le chemin de votre fichier : ");
getstring(path);
putstring(path);*/
fp = fopen("pinball.mid", "rb");
if ( ( fp != NULL ) )
{
int i=0;
while ((c = fgetc(fp)) != EOF)
{
printf("caractere numero %d = %c\n",i,c);
i++;
}
}
else
printf("Fichier inexistant\n");
return EXIT_SUCCESS;
}