Yesterday, i was programming a program in Java when i came accross something i though was just amazing. I could read and write complete Obects with just one line of code! They would go to a file and when i loaded then they would be straight back, without me having to do anything that difficult. The thing i was using was java.io.ObjectInputStream/ObjectOutputStream.

My question is: is there anything that does that in python, that lets you load and save objects so easily?

9 Years
Discussion Span
Last Post by Paul Thompson

pickle! *slaps head* gosh, i never knew! I always thought it was just a way to store strings in a file that meant you could take it across any platform no worries. Thanks, thats amazing, it will revolutionalise my programming!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.