MS-Dos how do I convert one line at a time in a .txt from one varable to an other : I have a document with some random letters in it for example
line 1: k
line 2: l
line 3: m
line 4: n

and I want to read one line and change the letter which I have a script to do that already using below.

> if "%name%"=="k" (goto k)

then I have this to set the new variable.

> :k  
> SET name=a  
> goto echo  

then I have it to output into the other document using

> :echo  
> ECHO %name%>>newvarables.txt  
> goto getinput

is there a way I can convert the lines of the first document into other variables based on the system I have already?

thanks in advance.