Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ini Files 1

Status
Not open for further replies.

nateshk

Programmer
Jan 16, 2001
49
HK
Hi ,

When do I use an ini file.

what r the advantages/disadvantages of using ini files ?

How is ini file different from ordinary text file ?

Thanx in advance

Natesh

 
If you're developing in Windows 95 or newer, forget INI files and use the Windows Registry instead. Although it's a little more complex from a programming point of view, it's the correct way of storing the information that you'd previously keep in an INI file.

In Windows 3.0 - 3.11 you can use functions like ReadPrivateProfileString and WritePrivateProfileString to read and write INI files. They still exist in Windows 95+ for compatibility, but bear in mind that INI files have a maximum size of 32k whereas the registry does not.

- Andy.
 
Hi ,

Why should I go for ini file when i can store & edit the same info in a text file ?

Does ini file offer certain advantages that it should be preferred over text file.

Pls clarify.

Thanx in advance.

Natesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top