This is my first question on stackoverflow and I have only been involved with python for a short time, but I have a problem with reading an .ini file and I cannot find the answer anywhere.
This is a small piece of my current code:
import configparser
config = configparser.ConfigParser()
config.sections()
config.read("filename.ini")
print(config.sections)
The script runs, but it does not print the names of the sections in my .ini file. I have waited for more than 15 min, but I still receive nothing. Could it be that the file is too large? It is 32.628 KB and I have to do the same thing multiple times so I was hoping I could automate it.
I hope someone can help me out