123456789101112131415161718192021
void main() { char str[55]; FILE *pointer; FILE* f; f = fopen("C:\\Customer.txt", "r"); if ( f== NULL ) cout<<"Nicht gefunden"<<endl; else { cout<<"\READING OK"<<endl; while (fgets (str,55,f) != NULL) printf("%s\n", str); fclose(f); } getchar(); }