Ini File - Getting Started

This tutorial covers the essentials of ini file introduction ..

ini file extension introduction?

ini file is file extension an data format for configuraiton and setup files for software applications. These files contains confiuration values very pouparly used by windows Operating System.

ini files looks like properties file with comments, headers

ini is abbrevated Initialize values as language and it is a new file format. It is used for specifying data in confiurations similar to textfiles . Ususally each software or application has some configuration data, We used to have property file with key and value pairs like key=value.The property files are not suitable when there is complex structure of configuration. INI is suitable for representing data in hashtable format and easy to read and write the data using various programming languages.

windows provides two Ini files, system.ini, windows.ini files by default, So many applicaitons during shipping the product to client has configurations in ini format

Advantages of INI file extension

  • It is human readable for simple configuration and settings
  • Support all popular languages - GO,Java,Python, Javascript etc.
  • Supports Comments
  • Maintenanable
  • Read and write capabilities
  • content of this files looks like windows init format

Disadvantages

  • Numbers like NAN and infiniy are not supported
  • No support for binary data
  • Complex valuesl ike table are not supported

INI use cases

  • INI can be used in many type of projects for configuration settings
  • Windows uses configuration settings for drivers,keyboards,mouses
  • Configuration and settings of the software applications

INI file extension

Initialie configuration in a file with extension .INI, You can use any IDE or text editor to open this file.

Ini File extension rules

  • Ini files extension is .ini by default
  • file supports UTF-8 encoding format only
  • Supports whitespaces, tabs and newlines asci code

MIME format type - text/plain

MIME is abbreviated as Multipurpose Internet Mail Extensions which is a format specified in request and response that is transfered between client and server across internet. Content-Type and accept headers in a request object are specified with this format following is the mime type for this documents

text/plain

and request contains the below value for INI data sending over the internet

Content-type : text/plain

Editors

All the popular IDE supports the INI file extension and also provides plugins to validate the INI file content. - Notepad++ - Eclipse - Visual Studio Code