I am using Jython and wish to import a text file that contains many configuration values such as:
QManager = MYQM
ProdDBName = MYDATABASE
etc.
.. and then I am reading the file line by line.
What I am unable to figure out is now that as I read each line and have assigned whatever is before the = sign to a local loop variable named MYVAR
and assigned whatever is after the = sign to a local loop variable MYVAL
- how do I ensure that once the loop finishes I have a bunch of global variables such as QManager
& ProdDBName
etc.
I've been working on this for days - I really hope someone can help.
Many thanks, Bret.