I am currently trying to store a certain line of a text file in a batch file with this code.
for /f "tokens=* delims= " %%a in (files.txt) do (
set /a N+=1
set v[!N!]=%%a
)
set /p id="Please choose a number(1-10):"
set number=%v[id]%
echo %number%
endlocal
However instead of printing out the line it prints out
id
Could someone help with this?