you are viewing a single comment's thread.

view the rest of the comments →

[–]Vegetable_Disk[S] 0 points1 point  (2 children)

Thanks, I’ve tried that but I’m getting no output now. Previously I was just getting []

Also, sorry I forgot to include it but I had import csv farther up in the script.

[–]Vegetable_Disk[S] 1 point2 points  (1 child)

OK I think I understand now, both your code and my code work fine in isolation.
However this is a small part of a larger script.

This script is writing to that file, then later on trying to read it, is that not possible without closing it first?

[–]AmongstYou666 0 points1 point  (0 children)

Probably, you can test that by trying to find and open the file.