|
fputsfunction
<cstdio> int fputs ( const char * str, FILE * stream ); Write string to stream Writes the string pointed by str to the stream.The function begins copying from the address specified (str) until it reaches the terminating null character ('\0'). This final null-character is not copied to the stream. Parameters
Return ValueOn success, a non-negative value is returned.On error, the function returns EOF. Example
This program allows to append a line to a file called mylog.txt each time it is run. See also
|