Read from/Write to .INI Files without API Calls

Files and Directories
Bernie Madigan

Version Compatibility: Visual Basic 6

More information:
Here are two VB6 modules you can use for creating and reading INI files. You may like to save then in your Templates\Modules folder for easy recall.

The sample program demonstrates how information is recorded to and retrieved from an ini file, allowing seamless continuation on subsequent starts of the program. Whatever fields are displayed on the form, will appear next time it is run.

You are free to customize this code for you own need. There is no copyright. Contact me at any time. Regards Bernie Madigan. (

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.