Jul-13-2020, 06:54 PM
(Jul-13-2020, 04:22 PM)Gribouillis Wrote: A configparser file normally needs a section header
#after added your section but still same issue.
Output:[mysection] foo = bar
[mysection]
foo = bar
[rootdirectory]
root_directory = e:\alnafi
[username]
user_name = m.bilal
[databaseconnected]
database_connected = True
[summaryunit]
summary_unit = False
Error:MissingSectionHeaderError: File contains no section headers.
file: '<string>', line: 1
'E:\\My Folders\\Alnafi\\AlNafi\\configparser_Ex3.txt'