Using lines require fseek to scan for all the newline values, right? Then I think Chessnut's suggestion would work best.

Thanks both of you.

And I'm only accessing it to append, but it's quite possible that I'm adding hundreds of lines, so I prefer to use /fwrite smile

Learning something new every day.