#include void main() { FILE *fp; fp = fopen( "file", "r" ); if( fp != NULL ) { /* rest of code goes here */ fclose( fp ); } }