void write_string_file(char *string)
{
FILE *filep; //定义文件指针
filep =fopen("../../test.txt","a+"); //建立路径,定义操作属性
if(filep==NULL)
{
printf("File can't open!");
}
fprintf(filep, "%s/n", string); //向文件中写入
fclose(filep);
}
void write_string_file(char *string)
{
FILE *filep; //定义文件指针
filep =fopen("../../test.txt","a+"); //建立路径,定义操作属性
if(filep==NULL)
{
printf("File can't open!");
}
fprintf(filep, "%s/n", string); //向文件中写入
fclose(filep);
}