Thread: ini files

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    29

    Question ini files

    I would like to know a bit more about .ini files.
    What are they used for and how are they used/ attached
    to a typical C program?

    Thanks,

    bigSteve
    bigSteve

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    ini files are typically a text file containing a list of catagories, variables, and values, ie:

    Code:
    [Catagory1]
    value1=2
    value2="hello"
    [Catagory2]
    value1="sup"
    They are used typically for simple changes which the user or developer can make without having to change the code.

    All the program does is read the text file and parse the lines to figure out which catagory/value it wants.

    Ini files vary from program to program.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Working with muliple source files
    By Swarvy in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2008, 08:36 AM
  2. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  3. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  4. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  5. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM