#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>

char *workfile="junk";

main()
{

  int filedes;

  if ((filedes = open(workfile, O_RDWR)) == -1)
   {
        printf("Couldn't open %s\n", workfile);
        exit(1); /* abnormal (error) exit */
   }

  /* read/write in loop until EOF */

 exit(0); /* normal exit */


}

