=====fprintf===== Syntax: #include int fprintf( FILE *stream, const char *format, ... ); The fprintf() function sends information (the arguments) according to the specified format to the file indicated by stream. fprintf() works just like [[printf|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: char name[] = "Mary"; FILE *out = fopen( "output.txt", "w" ); if( out != NULL ) fprintf( out, "Hello %s\n", name ); Related Topics: [[fputc]], [[fputs]], [[fscanf]], [[printf]], [[sprintf]]