Hi, i was irretated because i missed the array_reverse, so lines are processed from file end to file begin. However, i made a cleaner patch (CGL) and with "continue" better to read, same functionality. +1 by reading and testing. vg Steffen