C++ Programming/Code/Standard C Library/Functions/fprintf

fprintf
The fprintf function sends information (the arguments) according to the specified format to the file indicated by stream. fprintf works just like printf as far as the format goes. The return value of fprintf is the number of characters outputted, or a negative number if an error occurs. An example:


 * Related topics: fputc - fputs - fscanf - printf - sprintf