i have a loop displaying current number of file which is being created.

for(i=1;i<=nFileCount;i++)
{
     ...
     printf("%d. file has been created\n",i);
}

but i dont want the display to write ". file has been created." again and again as a list. I want only the i change. how can i do that?

thanx.

You could try

printf("%d. file has been created\r",i);
fflush(stdout);

Note the \r (carriage return), which should return you to the start of the current line, whereas \n is newline.