#include <stdio.h>

int main() 
{
	struct auto_typ {
		char hersteller[20];
		char marke[20];
		char baujahr[5];
		int ps;
	} a; 
	FILE* f = fopen("test4.dat","r");
	if (f==NULL) {
		printf("Datei konnte nicht ge�ffnet werden! \n");
		return 1;
	}
	while (!feof(f)) 
		if (fread(&a,sizeof(a),1,f)==1) 
			printf("Auto: %s %s %s %i \n", a.hersteller, a.marke,
				a.baujahr, a.ps);
	fclose(f);
	return 0;
}