Method Stdio.FILE()->ungets() Method ungets void ungets(string s) Description This function puts a line back in the input buffer. The line can then be read with eg read(), gets() or getchar(). Note The string is autoterminated by an extra line-feed. See also read(), gets(), getchar(), unread()