You must include additional C run-time header files to support file input and output operations. Add the following statements to the beginning of the C-language source file:
#include <sys\types.h> #include <sys\stat.h>