#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>

#ifdef __unix__
      #include <unistd.h>
      #include <sys/stat.h>
      #include <sys/types.h>
#elif __MSDOS__
      #include <io.h>
      #include <sys\stat.h>
#endif

main(int argc,char **argv) 
{
 int handle;
   
 if((handle=open(*++argv,O_RDONLY)) == -1)
   perror(*argv);
 else
   close(handle);

 return 0;
}
