#include <stdio.h>
#include <stdlib.h>

int main()
{
 FILE *quelle;
 int c;
 char datei[20];

 printf("Welche Datei wollen sie oeffnen : ");
 scanf("%s",datei);
 fflush(stdin);

 if((quelle=fopen(datei,"r")) == NULL)
 {
  fprintf(stderr,"Konnte %s nicht oeffnen\n",datei);
  exit(1);
 }

/*Wir setzten den FILE - Zeiger ans Ende der Datei*/
 fseek(quelle, 0L, SEEK_END);
 printf("Das Programm ist %ld Bytes gross!!\n",ftell(quelle));

 return 0;
}

