#include <stdio.h>

int main(void) {
    char c;
    FILE *fp;
    fp = fopen("testfile.txt", "r");
    if (fp == NULL) {
        printf("Kan file testfile.txt niet openen!");
    }
    else {
        c = getc(fp);
        while (c != EOF) {
            putchar(c);
            c = getc(fp);
        }
        fclose(fp);
    }
    getchar();
    return 0;
}
