fprintf()函数fprintf
语法:
1 2 |
?? #include <stdio.h> ?? int fprintf( FILE *stream, const char *format, ... ); |
fprintf()函数根据指定的format(格式)(格式)发送信息(参数)到由stream(流)指定的文件. fprintf()只能和printf()一样工作. fprintf()的返回值是输出的字符数,发生错误时返回一个负值.
示例:
1 2 3 4 5 |
??? char name[20] = "Mary"; ??? FILE *out; ????out = fopen( "output.txt", "w" ); ????if( out != NULL ) ?????? fprintf( out, "Hello %s\n", name ); |
You actually mentioned this fantastically. Advair Diskus Mg
Cheers. Very good stuff. viagra pills
Nicely spoken of course! . canada pharmacy