Please see my comment to the question.
Of course, the problem is easy to work around. But I would rather suggest an alternative idea.
Why using obsolete format which never was standardized and have serious limitations? Use some robust and standardized format, such as XML.
With Embarcadero, the solution is this:
Using TXMLDocument — RAD Studio.
But I would seriously recommend to address to open source. The main source is Free Pascal. You can download all the source code and build the solution in Delphi, if you want. Please see:
fcl-xml — Lazarus wiki,
XML Tutorial — Free Pascal wiki.
Also, there is a number of 3rd-party solution. One interesting approach is the Libxml2 wrapper, which also makes SAX available:
Libxml2 for pascal download | SourceForge.net[
^].
And I would strongly advice to pay close attention for Free Pascal and Lazarus (IDE but also a cross-platform UI library, LCL):
Lazarus wiki,
Lazarus Homepage (includes full Free Pascal installation in its setup).
This open-source product became very strong and robust. Compared to Delphi, it's much more of a cross-platform product, perhaps the most powerful cross-platform with UI available in the worlds of programing systems producing native code, with the widest set of platforms covered.
—SA