/*
P R O G R A M M B E S C H R E I B U N G

Demo-Zweck:
Demonstration wie der Inhalt einer Strukturvariablen in eine Datei geschrieben wird.
*/

#include "stdafx.h"

struct adresse{
	char name[6];
	int plz;
};

int main(){
	struct adresse a1={"gerd",1};;
	FILE *stream;
	int erg;

	printf("%d", sizeof(struct adresse));
	stream=fopen("c:\\test.txt", "rb+");
	fwrite(&a1, sizeof(struct adresse), 1, stream);
	erg = fclose(stream);
	return 0;
}



