how to print a file c
snippet in c

how to print a file c

user5465

    c = fgetc(fptr); 
    while (c != EOF) 
    { 
        printf ("%c", c); 
        c = fgetc(fptr); 
    }