I have a config File "Email_Properties.cfg" as below
[email_Properties]
Subject=Security keywords Scan Info
Body=securityDetails\n Note : This is an auto generated mail
I am using ConfigParser to read file and print the content, Not able to get newLine using \n
config = ConfigParser.ConfigParser()
config.readfp(open(r'Email_Properties.cfg'))
body=config.get('email_Properties', 'Body')
print body
output:
securityDetails\n Note : This is an auto generated mail
How i can get NewLine present in the string of Config file ? Expected output as below,
securityDetails
Note : This is an auto generated mail