像根据输入版本读取配置文件,根据版本名打开对应路径下的文件夹,使用snprintf复制字符串作为文件路径,但是输入ver102生成的字符串为
Ver102/er102
char filename[] = "dev_info";
char path[] = {0};
char version[100] = {0};
printf(":\n");
scanf("%s",version);
snprintf(path,16,"%s/%s",version,filename);
printf("文件路径为:%s\n",path);
FILE* fp=fopen(path,"r");