A couple of hundred lines of code later ... things are getting easier ... Is there a neater way of saying ... syncerr=False if 'SyncErr' in file: syncerr=True I've got a few of these & they seems a bit of a mess ! Dave PS Why was I scared of OOP - It rocks :-)