How to Loop Using utility readlines in single bot? Is it Possible in OB2?

I want to loop line by line using readlines of utility block (from a block to b block) until end of lines in single bot…! Can I do this in OB2? If yes how can I achieve this in loliscript?

You need to look into resources

Can you make lolicode for this, like take file (test.txt) from directory and read it line by line and execute each line from a block to b block ? Bcoz new to OB2 loli syntax…

Define a new resource that will not loop around (in config settings) and then

WHILE BOOLKEY True Is True
TRY
TAKEONE FROM "resourceName" => "myString"
// Here put blocks to do what you want with myString
CATCH
// If we are here it means there are no more lines
break;
END
END