为什么数据没法写入文件
没有语法错误可以运行 文件地址也打开了if(f=fopen("D:\\information management.txt","a")==NULL)
{ printf("file open error!\n");
exit(0);
}
fprintf(f,"%s ","student id: name: age: birthday: address: telephone:");
fprintf(f,"%s %s %d %s %s %s",num,name,&age,birthday,address,telephone);
fclose(f);