1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include <stdio.h>
#include <stdlib.h>

int main(int argc, const char *argv[]) {
    FILE* fp = fopen("abc.txt", "r");
    char ch  = fgetc(fp);
    printf("The character was '%c'\n", ch);
    fclose(fp);
    return EXIT_SUCCESS;
}

This content is protected and may not be shared, uploaded, or distributed.    © 2019 Alexander J. Quinn.