C++ <cstdio>

The C++ <cstdio> header file includes several macros and functions of C-style input/output library.

C++ clearerr()

resets error flags and EOF indicator for stream

C++ fclose()

closes given file stream

C++ feof() function

checks if file stream EOF has been reached or not

C++ ferror()

checks for errors in given stream

C++ fflush()

flushes any buffered data to the respective device

C++ fgetc()

reads the next character from given input stream

C++ fgetpos()

gets current file position

C++ fgets()

reads n number of characters from file stream

C++ fopen()

opens specified file

C++ fprintf()

write a formatted string to file stream

C++ fputc()

writes character to given output stream

C++ fputs()

writes string to file stream

C++ fread()

reads specified no. of characters from stream

C++ freopen()

opens a new file with stream associated to another

C++ fscanf()

read data from file stream

C++ fseek()

sets file position indicator for given file stream

C++ fsetpos()

sets stream file pointer to given position

C++ ftell()

returns current position of file pointer

C++ fwrite()

writes specified number of characters to stream

C++ getc()

reads next character from input stream

C++ getchar()

reads next character from stdin

C++ gets()

reads line from stdin

C++ perror()

prints error to stderr

C++ printf()

Write formatted string to stdout

C++ putc()

writes character to given output stream

C++ putchar()

writes a character to stdout

C++ puts()

writes string to stdout

C++ remove()

Deletes the specified file

C++ rename()

renames or moves specified file

C++ rewind()

sets file position to beginning of stream

C++ scanf()

Read data form stdin

C++ setbuf()

sets the internal buffer to be used for I/O

C++ setvbuf()

change or specify buffering mode and buffer size

C++ snprintf()

write formatted string to character string buffer

C++ sprintf()

Write a formatted string to buffer

C++ sscanf()

read data from string buffer

C++ tmpfile()

creates temporary file with auto-generated name

C++ tmpnam()

generates unique filename

C++ ungetc()

push previously read character back to the stream

C++ vfprintf()

write formatted string to file stream

C++ vfscanf()

read data from a file stream

C++ vprintf()

printf but takes args from vlist instead

C++ vscanf()

read data from stdin

C++ vsnprintf()

write formatted string to string buffer

C++ vsprintf()

write formatted string to a string buffer

C++ vsscanf()

read data from a string buffer