「C言語」fputs関数の使い方
サンプルコード
#include <stdio.h> int main() { FILE *fp = NULL; fp = fopen("/tmp/demo.txt", "w+"); fprintf(fp, "This is testing for fprintf...\n"); fputs("This is testing for fputs...\n", fp); fclose(fp); }
Coding Changes the World
サンプルコード
#include <stdio.h> int main() { FILE *fp = NULL; fp = fopen("/tmp/demo.txt", "w+"); fprintf(fp, "This is testing for fprintf...\n"); fputs("This is testing for fputs...\n", fp); fclose(fp); }