Skip to content

The present repository represents a class able to read an INI Configuration file

Notifications You must be signed in to change notification settings

NedSimao/ConfigFileINI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IniConfigFile

Developed by SIMAO Nedved (c) 16-05-2023

Examples of How To Use the class

 

Creating an INI File Object

from INIConfigFile import*

_path=os.getcwd() #set the directory for the .ini file 


file=IniFile()    #Create a new instance of IniFile()
file.OpenConfigData(_path) #Open the .ini file pointed by _path

 

Reading a key from a section

print(file.readKey("owner","name"))
print(file.readKey("owner","organization"))

print(file.readKey("database","server"))
print(file.readKey("database","port"))
print(file.readKey("database","file"))

Closing the object

file.CloseConfigData()

 

About

The present repository represents a class able to read an INI Configuration file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages