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?

Recommended Answers

All 2 Replies

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.