View Full Version : Command for Reading Input from the keyboard

17th January 2014, 07:42
Can anyone tell what is the command for reading input from the keyboard instead of reading the command input from a file. I am aware of the command:=
0< FILENAME is used to accept input from a file.

17th January 2014, 09:11
That is called the standard input or stdin for the program.
It is usually available through several low level handles: a file descriptor STDIN_FILENO, a FILE* handle stdin and the C++ istream std::cin