I have the following .txt file:
Marco
Paolo
Antonio
I want to read it line-by-line, and for each line I want to assign a .txt line value to a variable. Supposing my variable is name
, the flow is:
- Read first line from file
- Assign
name
= "Marco" - Do some tasks with
name
, let satset first= %name%
- Read second line from file
- Assign
name
= "Paolo" How do I do it?