It\'s not possible to do something like fputs(4, fptOut); because fputs doesn\'t like integers. How can I work around this?
fputs(4, fptOut);
Doing fputs(\"4\", fpt
fputs(\"4\", fpt
What about
fprintf(fptOut, "%d", yourCounter); // yourCounter of type int in this case
Documentation of fprintf can be found here.
fprintf