Coder's Guild Mailing List

Configuration files

Posted by ADnoctum on 2000-08-22

Hi,

I have a program that reads a configuration file with the sintaxis of a
windows ini file:

[section1]
variable1=value
variable2=value

[section2]
variable3=value
variable4=value

I'm using flex to read the file. Now I want to write a program to modify
that file: A dialog box that show buttons and checkboxes for everything, but
I don want that my program erase comments and spaces that the user may have
inserted in the file. Is there any way to modify a file, insert lines,
delete lines and so one w/o changing any other lines or forcing one
format/order.

thanks

ADnoctum
adnoctum@xxxxxxxxxx.xxx




Date: Tue, 19 Sep 2000 17:53:12 EDT
From: "Mark Morris" <msquared30@xxxxxxx.xxx>
Subject: 


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.