I'm kinda lost on how to use constant values from an external .txt file in my python file
File.txt:
email=value1
phone=value2
name=value3
And I want to use these values on my python file.
I have tried to do this:
Data = open('file.txt', 'r')
data1= Data.read(email)
print(data1)
But it isn't working as expected, expected output is "Value1". But I get an error, and if I only do Data.read() I am getting:
email=value1
phone=value2
name=value3
How would I get each value separately to use them in my python code?