Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.ini file - how to create?

1 view
Skip to first unread message

sla...@m.scs.uiuc.edu

unread,
Nov 27, 1992, 12:51:58 PM11/27/92
to
This is a FAQ, I guess, but is there a standard for .ini files for Windows programs?
I need a unit to create and read them.

Slawek Janicki
Sla...@m.scs.uiuc.edu

Steven J. Sobol

unread,
Nov 29, 1992, 9:24:28 PM11/29/92
to
.INI files are regular plain-text files which can be written and read
using any text editor or (from PASCAL) writeln and readln.

If you're programming in Windows, the routines GetPrivateProfileString,
GetProfileString, and SetPrivateProfileString and SetProfileString
make dealing with Windows .INI files easy. Get/SetPrivate use any
INI file you want to use, and Get/SetProfile use WIN.INI.

The general format of an .INI file is:

[Section1]
keyword1=value
keyword2=value
keyword3=value

[Section2]
keyword4=value
keyword5=value

Section names are enclosed in square brackets and different sections
of the .INI file have blank lines separating them.

-S
--
Steve Sobol, Prez. The Tiny Software Co * sjs...@tiny.com * sjs...@wariat.org
CALL APK in Cleveland, Ohio: Telnet/FTP/BBS/Shell/More! Info: in...@wariat.org
All for a Reasonable Monthly Rate. Telnet to wariat.org or pick up the phone...
216/481-9425 v.32bis/PEP; 216/481-9445 v.32bis/HST; 216/481-9436 2400 baud.....

0 new messages