Using Windows File I/O functions
Hi,
I've made a few programs in Windows using C now, but one thing bothers me:- the fact that I use the file I/O functions defined in stdio.h when I should be using the Win32 functions. Are they any good?
I'd like to change my current string debug file output function:-
Code:
int DebugCh(char *debugchar)
{
FILE *fdebug;
fdebug = fopen("debug.txt", "at");
fprintf(fdebug, "%s\n", debugchar);
fclose(fdebug);
return(TRUE);
}
so that it uses Windows file I/O. The only thing is, there doesn't appear to be an equivalent for fprintf. Any ideas?