I effectively missed something here!

It's working real fine now...
I did'nt understood that this line was the central part of the recreation of the file and i did'nt wrote it the same as you...
Did'nt even realized that when i rechecked my script...

Well thanks again jpols it's sincerely appreciated and let me go hide under a rock now...

Dag