I'm writing a simple program where I need to create multiple lists when i start (from a file) and write them to the file when I quit. I've googled and found that the best way is to put all the lists into a tuple and then write that to the text file. The problem is that i have loooooads of lists...
The lists are all attributes for objects in a class that i have, and I have managed to store all the objects in a list. So basically I have an "objectlist" and each object has it's own list. How do I write all these to a file with pickle? I tried adding "\n" after every list with a for-loop, but well, that didn't really work the way I planned ^^
Help would be much appreciated. Thanks! :)