Author Topic: InI Files  (Read 1211 times)


  • Newbie
  • *
  • Posts: 3
InI Files
« on: July 09, 2018, 07:03:29 am »
Hello everyone.

I seem to be having a little trouble with Reading .ini files anyone have some pointers?
I have been reading everything to try to understand how they read in the ini file, but I cant seem to get the hang of it.

Thank you,


  • Pundit
  • *****
  • Posts: 1667
    • Data & Stuff Inc.
Re: InI Files
« Reply #1 on: July 09, 2018, 07:22:15 am »
Please post an example of what you have tried that fails along with any error messages?



  • Tech Support
  • *****
  • Posts: 3739
    • WinBatch
Re: InI Files
« Reply #2 on: July 09, 2018, 07:32:51 am »
Accessing, creating, deleting and modifying initialization files is both straightforward covered in the Consolidated WIL Help file. The functions include IniReadPvt, IniWritePvt, IniItemizePvt and IniDeletePvt.  There is also a set of similar functions for legacy system initialization files that actually access the registry instead of a file in most cases.  Those functions are maintained for backward compatibility, have the same names as the above except for the "Pvt" on the end of each name, and are seldom used on modern versions of Windows.

Unless you have a more specific question, you might wish to take a look at the functions' documentation in the help file. 
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade


  • Sr. Member
  • ****
  • Posts: 410
Re: InI Files
« Reply #3 on: July 09, 2018, 01:34:52 pm »
Well, I can say that inireadpvt and iniwritepvt are solid and useful and forgiving and just great.  The only thing they do NOT do well is arbitrate between multiple users.  But as long as it's just the one user on a local drive, they are rock solid.  I have used them and misused them and they always work as documented.
The mind is everything; What you think, you become.