Delphi has a VERY re-usable, plug-and-play solution for handling object-to-text and text-to-object conversions. It's named "Delphi Streaming System" and it's the thing that produces the DFM's; And you will not like it - it's not really human readable.
Also there's Delphi's TStringList. It has a "Values" property that can be used to handle basic "key=value" pairs. Not very smart but can do the job. If TStringList's basic "key=value" is not enough you may consider TIniFile. TIniFiles offers a bit more, specifically it offeres a way to read a "value" as a given native type. It also has support for grouping values into "sections". If you need more structure there's XML. It is text, it is cool and it is almost human readable. If you don't want DFM, you don't want TStringList, you don't like good-old TIniFile and you think XML is overkill, you can always roll your own :-) How exactly do you envision this plug-and-play system to work? > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Paule Ecimovic > Sent: Thursday, March 09, 2006 11:57 AM > To: Borland's Delphi Discussion List > Subject: A Delphi Component that enables namelist-directed I/O > > Hi, All > > After coming across very useful threads in this list on writing to and > reading from human-readable text files in structured ways, such as writing > the values of a list of variables of various types to a file containing a > string representing a given variable's name followed by a delimiter > followed by that variable's value along with the ability to extract the > information back from the corresponding file, I came to wondering whether > there is a Delphi component that does this. In the past when I have posted > to this list about this I got very useful pointers outside of Delphi, > i.e., a wrapper of a C routine for NAMELIST-like functionality, or the > tried and true yet insufficiently re-useable maxim "For best results, > advice roll-your-own". I am wondering about a plug-and-play standard > Delphi solution to this problem that I can re-use at the drop of a hat, > everywhere. > > Many thanks in advance, > > Paule > _______________________________________________ > Delphi mailing list -> [email protected] > http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

