hi all:
I want to create a new file dynamically for each day.how can i do this.
eg..
struct tm tm;
while\(1\)
\{
if\(tm.tm_hr==0 && tm.tm_min=0 && tm.tm_sec==0\)
\{
//create a new file..
printf\("%d%d%d",tm.tm_hr,....\);
\}
else
\{
//continue writing to the old file.
\}
\}
but when i try to print the time inside the while(),the min,sec does not change accordingly..why?(i mean it should print the system time dynamically).