Quote from: Thaddy on January 31, 2023, 06:30:09 amYup, something like that (missing exception handling, though?)Uhm... the only "error handling" that comes in my mind would be to test if file exists, try to delete, when that succeed write it.Do you have something different in your mind that I am currently not aware of?Or you meant a seperate "try/except" around the SaveToFile() ?As longer I think about, as more strange stuff come in my head (I usual just let the class do the job...)Quote from: Thaddy on January 31, 2023, 06:30:09 amAnd of course count from zero Absolute! Thats why I noted:Quote from: KodeZwerg on January 31, 2023, 06:18:07 amOfc the record stuff I can't check but at least you see some logic.( Where I actual meant an array )
Yup, something like that (missing exception handling, though?)
And of course count from zero
Ofc the record stuff I can't check but at least you see some logic.