Thank you very much for your ideas!! The sscanf solution of MK27 looks most readable so I think I'll use it