To read and write a line of text, there are the puts() and gets()console functions and their stream equivalents, fputs() and fgets(), as in the following table:
Output
Function |
Output
Stream |
Input
Function |
Input
Stream |
|||
Console I/O | puts() | ⇒ | stdout | gets() | ⇐ | stdin |