Is there any substitute for command scanf to extract number from char array? I found one problem with it: it waits for keyboard input. Do I use it incorrectly or is there any way how to make it no waiting? Just to run and print the number without pause.
1 2 3 4 5 6 7 8
#include <stdio.h>
int main()
{
int theNumber = 0;
scanf_s("file%d.txt", &theNumber);
printf("your number is %d", theNumber);
}