Parameters.txt
params = {} with open("parameters.txt") as f: for line in f: (key, val) = line.strip().split("=") params[key] = val Use code with caution. Copied to clipboard
If you are developing software, you can create a "getter" feature that reads your parameters.txt and converts the data into usable program variables. parameters.txt
Regenerate Read File - which parameters get loaded from .txt file? params = {} with open("parameters