Hello I am running gcc on Linux and Solaris. At command prompt I am redirecting an input file to my binary, which is attached to stdin. I am using gets() to read from stdin. After I am finished reading the file, I want gets() to continue reading from console input. But I cant figure out how? Can anyone help in this regard. Regards Nauman