Thanks for your answers. If I have some spare time I will put this into a small C program, I think that's easier... Also because all other lines in the file which don't contain these texts should be deleted, so multiple parsing will be necessary. Or not??