Built-in Units

INIFILES

Modern Pascal supports the INI file structure with this unit. This allows you to use text based configuration files, like Linux users are used to, while having a proven format for all platforms.

Globals



Functions



Procedures



TIniFile

.Init(Const Filename:String)
.ReadBoolean(const Section,Ident:String;Default:Boolean):Boolean
.WriteBoolean(const Section,Ident:String;Value:Boolean)
.ReadInt64(const Section,Ident:String;Default:Int64):Int64
.WriteInt64(const Section,Ident:String;Value:Int64)
.ReadInteger(const Section,Ident:String;Default:Integer):Integer
.WriteInteger(const Section,Ident:String;Value:Integer)
.ReadString(const Section,Ident,Default:String):String
.WriteString(const Section,Ident,Value:String)
.ReadTimestamp(const Section,Ident:String;Default:TTimestamp):TTimestamp
.WriteTimestamp(const Section,Ident:String;Value:TTimestamp)
.DecrementInt64(const Section,Ident:String;DefaultInt:Int64=0;IncValue:Int64=1):Int64
.DecrementInteger(const Section,Ident:String;DefaultInt:Longint=0;IncValue:Longint=1):Longint
.IncrementInt64(const Section,Ident:String;DefaultInt:Int64=0;IncValue:Int64=1):Int64
.IncrementInteger(const Section,Ident:String;DefaultInt:Longint=0;IncValue:Longint=1):Longint
.ToggleBoolean(const Section,Ident:String)
.ReadSection(const Section:String;Strings:TStrings)
.ReadSectionRaw(const Section:String;Strings:TStrings)
.ReadSections(Strings:TStrings)
.ReadSectionValues(const Section:String;Strings:TStrings)
.EraseSection(const Section:String)
.DeleteKey(const Section,Ident:String)
.UpdateFile
.GetCacheUpdates:Boolean
.SetCacheUpdates(V:Boolean)
.GetCaseSensitive:Boolean
.SetCaseSensitive(V:Boolean)
.Free