Im not really sure why this is not working. My book doesnt really explain how to print a file very well. Can anybody help me on why this isnt working. Here is my source code.
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
FILE *fpIn;
fpIn = fopen("P7-03.h", "r");
if (!fpIn)
{
printf("could not open file\a\n");
exit(101);
}
fprintf(fpIn,"%d");
return 0;
}