lcErg = ""
for lnRun toalines(laLines, FileToStr(...))
If !Empty(laLines[m.lnRun])
lcErg = m.lcErg + laLines[m.lnRun]endifnextStrToFile(...)
not optimized for large files/many lines, just a one-shot... If you need it in production, test writing directly into file instead of concatenating a string. Works even if there are spaces/tabs in those "Empty" lines...