Is it possible to do so?
I want to execute the following statements...
while(1){
fputs(ch, b);
printf("Extracting information please wait..."); //This is the line I want to execute in intervals
}
Is it possible to do so in C? I tried keeping a x variable for making the print statement execute slower like this:
while(1){
fputs(ch, b);
if(x%10 == 0)
printf("...");
x++;
}
But obviously it makes the execution of filling of the file slower. Is there any way? I know most probably there isn't because C executes line by line as it ain't a scripting language, but still. Can we use sleep() somehow for this purpose? Or is the only way is to make both the statements wait?