Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个字符串,我想将这些字符串写入以下格式的文件:
string1 "space/comma" string2 "newline" string3 "space/comma" string4 "newline" .. .. ..
FILE* fileptr = fopen("file.txt","wt"); fprintf(fileptr,"%s , %s \n",string1,string2);