I've problem regarding how to create dynamic file using C.
I need to create Log Files for machine.
I think i want to design the Log File names looks like as follows :
20101222.txt (YYYY-MM-DD)
So, every days my program (DLL) will create a Log Files for each days.
1 day 1 log file, and note all information happened at that day.
For create File the code is used as follows :
char * FILE_NAME = "C:\\Test\\20101222.txt"); //How to change this to current date?
FILE *Ifp;
fp = fopen(FILE_NAME, "a");
-- do writing information --
-- do writing information --
-- do writing information --
fclose(fp);