Your code looks good to me, I just had another idea up my sleeve from a problem that I had.

The only draw back with your code that I can see is that you will always rewrite the file. Yeah, I know it's an easy thing to fix, just add a 'if not readline=whatever the do the code' bit and it's fixed.

Maybe we can all share code and come to an appreciation of others ideas?

acmp<><
_________________________
Every day is a school day