hi,
thanks for the reply.
i cant able to understand how to create a file with the file name.
i tried this code.
#include <time.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/types.h>
#include<fcntl.h>
int main()
{
char s[30];
int fp;
size_t i;
struct tm tim;
time_t now;
now = time(NULL);
tim = *(localtime(&now));
i = strftime(s,30,"%b %d, %Y; %H:%M:%S\n",&tim);
printf("%s\n",s);
}
output of this is
Dec 21, 2010; 10:30:34
i want to open a file like this :
Dec 21, 2010; 10:30:34.txt
Please give me suggestion regarding this.Is it possible to open a file like this?