I need a way to read one line of a txt file into a variable based on a number stored in another variable.
Example
If "var-a" = 45 then read the 45th line of file.txt into "var-b"
Or
If "var-a" = 87 then read the 87th line of file.txt into "var-b"
Would also like to do this based on errorlevel but really need it for a variable
Would really appreciate your help
Thanks
