[Tutor] Saving class data to a text file

2005-07-16 Thread Darryl Luff
Hi all. I'm looking at Python for the first time, and using it for an app I'm writing to try it out. I normally use c or perl. I have a class that has half a dozen or so data fields. It needs to be able to save its data to a text file, in a format that's easy to edit with other tools (vi, perl, et

Re: [Tutor] Saving class data to a text file

2005-07-19 Thread Darryl Luff
Alan G wrote: > ... > Take a look at the OOP topic in my tutor. It includes an examnple > of how to save/load objects to text files. Thanks Alan, Javier and Jonathon. The answers I got all showed me bits of Python I haven't seen before! I'll have to take a while to digest the others. I left ano