I have a python file (example.py) to run, which contains 3 variables. I have three .txt files (var1.txt, var2.txt, var3.txt) which contains the values of each of these 3 variables.
I want to write a batch file (bfile.bat) that retrieves the three values from the text files, pass these values to the variables in the python file, and then run.
Any help would be appreciated!
-added-
Thank you. the thing is, there is no particular reason for the three files.
So a coworker of mine wrote this program in python (which I am new too), I'll say this program's name is "program.py", and she also made a file to show how it works, by setting the values of variables used in the program.py; which is "example.py". this example.py containes the values of the variables which are used in the program.py. But I want to use many values for these variables, so I wanted to make a batch file for this - which apparently is not a good idea.
So the example.py looks something like this:
SOUND = 'sound.wav'
TIMESTEP = 50
END = 500
program(SOUND, TIMESTEP, END)
and I want to change the values of SOUND, TIMESTEP, END. please help me!
Thank you!