Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 22nd, 2005, 07:24 AM
Registered User
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to read and update .INI files using Pure C ??


I am in midst of problem i want to make the .ini files to be read in my C GUI made by me and if the user wants to update the key values he can update that too ...But i dont know how to make the .ini files read in my text area...and also about the various checks...

If anyone has even a small sample code it will help me a lot...
Please help me with this issue...I want it in the Pure C language not the CPP ....

thanks in advance.

Reply With Quote
  #2 (permalink)  
Old March 24th, 2005, 01:22 AM
Authorized User
Join Date: Mar 2005
Posts: 58
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Alan-LB Send a message via Yahoo to Alan-LB

It sounds like you should have your program write out a text .INI file with the various key value entries in it.

The user can then use any text editor (such as Notepad) to edit the .INI file.

When your program starts up, it can read the .INI file as a text file and check all the entries to see if they are acceptable.

Look up a manual of text book to find out how to open, write to, read from and close text files. Check out any code examples. This should give you a good start for your program.


Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Read data from ini file nbryson VB How-To 5 April 2nd, 2015 05:14 AM
INI files Kis C# 3 April 2nd, 2015 05:04 AM
how to read files in evc++ iriskab Visual C++ 1 September 1st, 2006 04:19 AM
Reading .ini files anisurr C++ Programming 2 February 7th, 2006 05:02 PM
How to Read from INI file alen Pro VB 6 2 September 3rd, 2004 06:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.