All pastes #276906 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-12-12 19:58 UTC
rendered paste body
int     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;
}