1

我有两个字符串,我想将这些字符串写入以下格式的文件:

string1 "space/comma" string2 "newline"
string3 "space/comma" string4 "newline"
..
..
..
4

1 回答 1

5
FILE* fileptr = fopen("file.txt","wt");
fprintf(fileptr,"%s , %s \n",string1,string2);
于 2011-01-27T09:41:40.803 回答