fputs 向文本写数据


#include
#include
#include

#pragma warning(disable : 4996)

using namespace std;

int main() {
    
    char str[1000] = "123hello allen C语言";
    FILE *fp = fopen("out.txt", "w");
    fputs(str,fp);
    
    fclose(fp);


    return 0;
}

相关