Results 1 to 4 of 4

Thread: [RESOLVED]How to read an INI file

  1. #1

    Thread Starter
    Member nci's Avatar
    Join Date
    Aug 2003
    Posts
    43

    Resolved [RESOLVED]How to read an INI file

    Hello all,
    I'm wondering how to read and write data in a standard INI file format. When using C or similar language, i use the windows API (WritePrivateProfileString and ReadPrivateProfileString), but I cannot seem to find anything similar to this in C#, does anyone know how I might do this?

    thanks for the help
    cheers
    Last edited by nci; Oct 2nd, 2007 at 01:46 PM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to read an INI file

    See this example.

  3. #3

    Thread Starter
    Member nci's Avatar
    Join Date
    Aug 2003
    Posts
    43

    Re: How to read an INI file

    yay! thanks.

  4. #4
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564

    Re: [RESOLVED]How to read an INI file

    Old thread... That link is gone and I'm looking for a similiar thing, but I need to Write some keys/values.

    I've seen a few examples, but I still can't wrap my head around it.

    *NM, I think this is it now

    http://www.codeproject.com/KB/cs/cs_ini.aspx
    Last edited by BrianS; May 5th, 2010 at 07:26 PM.

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