@dreamy finch
hello, so i need some help with thisprogram im trying to make, it is for my personal use, not hw. So a summary i have a menu with 3 option 1select an exisitng driver and 2add a driver, when addinga driver i will be asked to input their name, cnp and truck number and when i chose to chose a driver i will be asked to write 2 dates, date1 when they started working and date2 when they arrived, the output is calculated in days like 11.59 days. all this is stored in a drivers.txt file and each drivers has their one line like this name,cnp,truck number and here is the problem i cant seem to add the output days on the same line, its always on the line below, tried using chatgpt but no luck, if anyone wants to help id appreciated
here is the code