January 2019
Beginner
318 pages
8h 23m
English
In this section, we are going learn about the configparser module of Python. By using the configparser module, you can manage user-editable configuration files for the application.
The common use of these configuration files is that users or system administrators can edit the files using a simple text editor to set application defaults and then the application will read and, parse them and act based on the contents written in them.
To read a configuration file, configparser has the read() method. Now, we will write a simple script named read_config_file.py. Before that, create a .ini file named read_simple.ini and write the following content in it: read_simple.ini
[bug_tracker]url = https://timesofindia.indiatimes.com/ ...
Read now
Unlock full access