As in the question I am having trouble finding a good answer on how to extract values from a txt file into multiple variables, my plan for this is to incorporate saving into the game I mentioned in my previous question(I already have the values saving into the file I just need to be able to receive them back)
@echo off
set User=DNABuster
set /a Round=1
for /f "tokens=* delims=" %%x in (Save%User%.txt) do (
set a=%%x %0
set b=%%x %1
set c=%%x %2
set d=%%x %3
)
Is my current code(%0 is just a placeholder until I figure out how to get the first value alone to be equivalent to that variable), I also tried:
set User=DNABuster
set /a Round=1
set test=0
for /f "tokens=* delims=" %%x in (Save%User%.txt) do (
set /a test=%test%+1
set a.%test%=%%x
)