Python newbie here. I was trying to troubleshoot an issue with writing a csv file in a larger program and decided to go back to basics to try to find the problem.
I
That code works. Are you sure your OS isn't just rounding down the CSV size -- after all, it will only be a few bytes!
You can try print(open("eggs.csv").read()) to see whether the file is actually empty, or else more eggs.csv from the command line.
print(open("eggs.csv").read())
more eggs.csv