Advertisement

07.17.2005 at 06:56AM PDT, ID: 21494387
[x]
Attachment Details

Reading INI file in C

Asked by Mr_A_Smith in C Programming Language

Tags: ini, c, file, read

Hey Experts!

I want to read an INI file using C. I wouldnt say im very familar with C (beginner/intermediate). Could someone give me code samples on how to read an INI file's values? Ive done this before in Visual Basic using the Windows API (GetProfileString..), however, ive never used the windows api in C.. so i have absolutely no idea how to accomplish this...

Theres a catch here though! I don't know the exact file name of the INI file... All i know is the first 4 or five characters... Is there a way to search a directory.. grab the ini files based on the first few characters of the file name, then read only them INI files?...

Any code samples, help -  would be so much help
Thanks for your time!!!Start Free Trial
 
Loading Advertisement...
 
[+][-]07.17.2005 at 02:42PM PDT, ID: 14462813

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2005 at 03:44PM PDT, ID: 14463005

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C Programming Language
Tags: ini, c, file, read
Sign Up Now!
Solution Provided By: furqanchandio
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.17.2005 at 04:08PM PDT, ID: 14463045

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2005 at 01:41AM PDT, ID: 14464407

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32