ok, this is my problem. I'm running an infinite loop where i am gathering data and writing it to a file. I want to be able to check the stdin so the user can input 'q' or something like that and then break the loop. The problem is that scanf(), getchar(), getc(), etc stop the loop and wait for the user to press "Enter". is there anyway of checking the stdin without stopping the program? Please Help.