LexBwmn / Project_3_Section1_Group3_Patient_System

1 stars 0 forks source link

CSV file read operation failure #10

Closed AnonimGuest closed 7 hours ago

AnonimGuest commented 7 hours ago

Describe the bug The function readPatientsFromCSV() failed to read data when the file contained an empty line or extra spaces.

Expected behavior The function should skip invalid lines and continue reading the rest of the data.

Additional context Observed with a sample CSV file containing extra newline characters.

AnonimGuest commented 7 hours ago

The readPatientsFromCSV() function was enhanced to ignore empty lines and extra spaces while reading the file. Exception handling was implemented to skip invalid entries and log errors for debugging purposes.