How to Read line by line from a file using a script?

Hi,

a little of self-promotion in 2026 :}, check this Blacklist Filter update script - #385 by BartoszP