All I wanted to add by explaining algorism's method was that there was an error that you cannot expect to recover from - the end of the file

... now is that a penny dropping that I hear the sound of??? Many thanks whiteflags, jim, algorism for you help. Regards