#include int main() { FILE* f = fopen("test3.dat","r"); if (f==NULL) { printf("Datei konnte nicht geöffnet werden! \n"); return 1; } int c; while (!feof(f)) { c = fgetc(f); putchar(c); } fclose(f); return 0; }