[FILE] Process Lines in Text File

What Troy wished to do I would like to as well, and I have tried to insert:

Set variable Index to 1

In the loop:

Set variable "Var%Variable%Index%" to text "%Variable%SingleLine%"
Set variable Index to calculation Index+1

In the appropriate places in the Macro made by JmichaelTX, but I am doing something clearly wrong. I suspect the problem concerns this variable:

Set variable "Var%Variable%Index%" to text "%Variable%SingleLine%"

And have tried various combinations (such as without %Variable% and % but I cannot get the macro to work.

Any help would be gratefully received.

The macro as I have amended it: