Nov-29-2022, 07:47 AM
The problem is not with the loop, but the
Probably you want to use
MonthlyReport.txt
file you create. You write to this file in 3 locations and you never use ;
e.g. as separator. Unless there is ;
in your data, which I doubt, it will throw error because split will return 1-element tuple. i.e. there is only index 0. And even if there is ;
in your data, I doubt that is what you want.Probably you want to use
;
as separator, not \n
.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs