#include #include #include #include void main() { int handle; /* open a file for input */ handle = open( "file", O_RDONLY | O_TEXT ); if( handle != -1 ) { printf( "Size of file is %ld bytes\n", filelength( handle ) ); close( handle ); } }