Hello im creating a booking system for a college assignment and i have a function that checks a text file to see if it has any data in it and returns a boolean value so it can mark a booking slot as open or closed.
When the function runs it prints the 1 or 0 boolean value to the console and you have to press any key to continue.
Is there any way i can hide this so it doesnt display the value to the user and you dont have to press to continue when the function runs?
1 2 3
bookedChecker[0] = bookedCheck(bookingSlot1); // this is the function
bookedChecker[1] = bookedCheck(bookingSlot2);
bookedChecker[2] = bookedCheck(bookingSlot3);