1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
/* fputws example */
#include <stdio.h>
int main ()
{
FILE * pFile;
wchar_t sentence [256];
wprintf (L"Enter sentence to append: ");
fgetws (sentence,255,stdin);
pFile = fopen ("mylog.txt","a");
fputws (sentence,pFile);
fclose (pFile);
return 0;
}
|