Results 1 to 6 of 6

Thread: INI Files

  1. #1

    Thread Starter
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459

    INI Files

    Hello!

    I am new to INI files and just want to know : How can i create/load ini files ?

    And also whats the format of INI files!

    Thanks!
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    The format is like this:
    [subheading]
    infoname = infovalue
    Just open one on your pc with notepad to check this.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    To read & write to an ini file, you'll need to use the API.
    Check out :

    WritePrivateProfileString
    GetPrivateProfileInt

    calls either by searching this site for sample code, or by looking at www.allapi.net!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4

    Thread Starter
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459
    Thanks man! It worked out pretty fine! ;-)
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

  5. #5
    Hyperactive Member
    Join Date
    Jun 2000
    Posts
    350
    But the use of ini files is deprecated; we're 'supposed' to use the registry. But if you're superstitious like me and don't like dabbling in the registry, why not use ini files. Only problem is that they can be deleted my mistook I guess.
    .

  6. #6

    Thread Starter
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459
    Thanks for the suggestions! I am not saving the options etc. actually i want to use INI file format as my file format!

    So i thought that INI files will be easy do do...!!

    Thanks!
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width