#include <stdio.h>

main()
{
	FILE *fp;		/* file pointer */

	/*
	 * Try to open the file.  
	 */
	if ((fp = fopen("foo", "w")) == NULL) {
		printf("Cannot open or create foo.\en");
		exit(1);
	}

	/*
	 * Now close the file.
	 */
	fclose(fp);
}
