Thanks Todd,

Had not thought of doing it that way :)

Ben

-----Original Message-----
From: Todd Martin [mailto:[EMAIL PROTECTED] 
Sent: Monday, 28 July 2003 1:25 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: INI files

Hi Vaughan

Use TMemIniFile

function GetIniFileFromStream(AStream : TStream) : TCustomIniFile
var
  List: TStringList;
begin
   Result := TMemIniFile.Create('');
   List := TStringList.Create;
    try
      List.LoadFromStream(AStream);
      Result.SetStrings(List);
    finally
      List.Free;
    end;
end;

Todd.

----- Original Message ----- 
From: "Vaughan, Benjamin Carl" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 11:49 AM
Subject: [DUG]: INI files


Hi All,

Does anyone know if there is a TCustomINIFile specialisation that has
been written to handle INI's from a Stream rather than a File? 

(The file is streamed from a database and I would like to avoid having
to write it to the file system first if I can).

Regards
Ben
------------------------------------------------------------------------
---
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/


------------------------------------------------------------------------
---
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to