$ 0 0 I am relatively new to C so I will have to go through what you have written. It looks like it can do what I want. Thanks Peter