|
@ -46,9 +46,9 @@ float getAvailableAccountBalance(int user_id) { |
|
|
strcat(stringID, user_id_as_string); |
|
|
strcat(stringID, user_id_as_string); |
|
|
// Now stringID is "ID=user_id" |
|
|
// Now stringID is "ID=user_id" |
|
|
|
|
|
|
|
|
FILE *file = fopen("CustomerData.txt", "r"); |
|
|
|
|
|
|
|
|
FILE *file = fopen(CUSTOMER_DATA_FILE, "r"); |
|
|
if(file == 0) { |
|
|
if(file == 0) { |
|
|
printf("Error: customer data file cannot be opened!"); |
|
|
|
|
|
|
|
|
printf("Error: customer data file cannot be opened!\n"); |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|