I'm currently using batch for this code. I need to make a script that will ask a user how many times a loop needs to be run. In this loop the program will ask the user for numbers, and these numbers need to be added to a global array. I'll post some pseudocode.
@echo off
set /p d=How many times will this loop?
cls
for /L %%a in (1,1,%d%) do (
set /p code=Input code:
Set codes[%%a]=!code!
)
my goal with this is to get it to paste all of the codes in a .txt file after it has run through the desired amount of loops.
resulting .txt file would look something like this:
input1
input2
input3
input4
so on and so forth. There would be as many inputs in the .txt as there were loops in the beginning.