From 2f729d8ff0500162c77bd1248d54528366d87ae9 Mon Sep 17 00:00:00 2001 From: Shivam Chaudhary Date: Wed, 1 Feb 2023 21:23:43 +0100 Subject: [PATCH] Refactoring: Use created constant name for file --- src/currentCustomerAccountBalance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/currentCustomerAccountBalance.c b/src/currentCustomerAccountBalance.c index 9f415f9..a91e306 100644 --- a/src/currentCustomerAccountBalance.c +++ b/src/currentCustomerAccountBalance.c @@ -46,9 +46,9 @@ float getAvailableAccountBalance(int user_id) { strcat(stringID, user_id_as_string); // Now stringID is "ID=user_id" - FILE *file = fopen("CustomerData.txt", "r"); + FILE *file = fopen(CUSTOMER_DATA_FILE, "r"); if(file == 0) { - printf("Error: customer data file cannot be opened!"); + printf("Error: customer data file cannot be opened!\n"); return 0; } else {