#include #include int main( void ) { int num; FILE *fptr1; fptr1 = fopen( "abc.txt", "r" ); if ( fptr1 == NULL ) { printf( "Oh, no! no abc.txt!\n" ); exit( 1 ); } fscanf( fptr1, "%d", &num ); fclose( fptr1 ); }