Yeah I kind of want to 'reinvent' the pickle and I am aware of that. The problem for me is that the output that pickle dumps to a file is too 'cryptic' as I want the ability to edit the corresponding textfile directly and easily, so I'm going for an own way.
But yes, Kartic and you were basically right about the line length and checking it first. Didn't really think about it, maybe I was too tired... :) Thanks again! Hope I'm not bothering you all with my extremely newbie questions. munin -- http://mail.python.org/mailman/listinfo/python-list