I want to read my parameter file line by line and save the values into a variable my parameter file look something like that
Parameter File
DBHOSTNAME=192.168.x.x
DBSID=SID
BEUSERNAME=username
BEUSERPASSWORD=password
HOSTPATHBE=path
Code
file = open('envparam.config')
for line in file:
fields = line.strip().split()
print (fields[0])
So far I am able to read my parameter file but not able to store values into variables can anyone help me with this