读取模式调整 确保load函数只读

master
ithg 7 years ago
parent e42474e2a7
commit 4de6c07d9d

@ -154,14 +154,14 @@ void Save() //
void Load() //加载数据文件
{
FILE *fp1, *fp2;
if ((fp1 = fopen("sql.txt", "rb+")) == NULL)
if ((fp1 = fopen("sql.txt", "rb")) == NULL)
{
system("cls");
printf("车次数据文件不存在,请先录入数据\n");
system("pause");
Menu();
}
if ((fp2 = fopen("num.txt", "rb+")) == NULL)
if ((fp2 = fopen("num.txt", "rb")) == NULL)
{
system("cls");
printf("车次序号数据文件不存在,请先录入数据\n");

Loading…
Cancel
Save