get multiple values from INI file

This is a discussion on get multiple values from INI file within the C++ Programming forums, part of the General Programming Boards category; i have an INI file and in it there is a section with 4 values with the same keys. is ...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    98

    get multiple values from INI file

    i have an INI file and in it there is a section with 4 values with the same keys.
    is it possible to get all of them?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,443
    If you're reading the file yourself, yes.
    If you're using some OS provided API for reading INI files, read the documentation.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    98
    I'm using GetPrivateProfileString.
    All i see in the document is a possibility to read all keys\sections, but not the values...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. disposing error
    By dropper166 in forum C# Programming
    Replies: 2
    Last Post: 03-30-2009, 11:53 PM
  2. Print a File on Multiple Processors
    By Cell in forum Linux Programming
    Replies: 6
    Last Post: 03-25-2009, 09:39 AM
  3. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 06:02 AM
  4. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  5. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21