From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7db300de5361ec09 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-30 21:37:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttln1.wa.home.com.POSTED!not-for-mail From: "DuckE" Newsgroups: comp.lang.ada References: Subject: Re: Init file package avail? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Sat, 01 Dec 2001 05:37:47 GMT NNTP-Posting-Host: 24.248.45.203 X-Complaints-To: abuse@home.net X-Trace: news1.sttln1.wa.home.com 1007185067 24.248.45.203 (Fri, 30 Nov 2001 21:37:47 PST) NNTP-Posting-Date: Fri, 30 Nov 2001 21:37:47 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:17268 Date: 2001-12-01T05:37:47+00:00 List-Id: Have you considered using XML? See: http://www.w3schools.com/xml/default.asp And of course: http://libre.act-europe.fr/ SteveD "Paul F. Pearson" wrote in message news:c1655c76.0111301354.6a4455e5@posting.google.com... > Is there a package available to handle reading in from an > intialization file? Preferrably, I'd like one that handles sections > (sort of like the Windows INI file format). I started designing one, > but thought I'd make sure I'm not reinventing the wheel. I'm including > what I'd desinged. I like the capabilities, but don't require the > actual "syntax." > > ------ begin top-of-my-head design ---------- > #comments begin with hash (UNIX style) > #for simplicity, I'd require comments to be on a seperate line > [Section 1] > field1 = value1 > #note no terminator on above line > > [Section 2] > #field name must only be unique within a section > field1 = value2 > field2 = [Section 1, field1] > #a value can be a reference to another value. > > ------ end top-of-my-head design ---------- > > I've even thought about having a %use [Section 1] type of syntax to > allow an entire section's fields to be "copied" into another section's > "namespace".