Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 22nd, 2005, 07:24 AM
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to read and update .INI files using Pure C ??

hi

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 ....

bye
thanks in advance.

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

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.

Alan

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:08 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.