All pastes #352327 Raw Edit

Untitled

public c v1 · immutable
·published 2007-02-12 19:22 UTC
rendered paste body
# include <stdio.h># include <stdlib.h>int main(){    FILE* datei;    int zahl, i=0;    int liste[10];        datei = fopen("jackpot.dat", "r");			//datei zeigt auf die zu oeffnende datei    if ( datei == NULL )				//sollte die datei nicht existieren    {	printf("Dateifehler \n");	exit(1);    }	    while(i<10)        {fscanf(datei, "%i", &liste[i]);         i++;        }    fclose(datei);    for (i=0; i<10; i++)        printf("%i \n",liste[i] );    return 0;}