#include <stdio.h>
#include <stdlib.h>
FILE *stream;
void main( void )
{
/* Reassign "stdin" to "datei.txt": */
stream = freopen( "datei.txt", "r", stdin );
if( stream == NULL )
fprintf( stdout, "error on freopen\n" );
int i;
printf("Geben Sie eine Zahl zwischen 0 und 9 ein:\n");
scanf("%d",&i);
}
____________________________________
Bibel
|