#include void main() { FILE *stream; stream = fopen( "file", "r" ); printf( "File number is %d\n", fileno( stream ) ); fclose( stream ); }