#include #include void main() { int handle; handle = open( "file", O_RDONLY ); if( handle != -1 ) { /* process file */ close( handle ); } }