Patrick


> TStrings is fine if you want to read and write a whole file at once. If
you
> just want to write one line to the end of the file then it's not required.

When you consider Virtual Memory and disk Caching the is there a difference?
:-)
or are you simply moving a textfile about in mem?

Isn't there also a size limit on TStrings

Neven




> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Steve Peacocke
> > Sent: Thursday, 8 March 2001 17:27
> > To: Multiple recipients of list delphi
> > Subject: Re: [DUG]: Referencing variable TextFile names
> >
> >
> > Mark, In recent years I have forsaken the old and trusty TextFile
variable
> > to using TStrings. With TStrings, not only can I write to and read from
> > text files in a single call, but the contents are then already placed
into
> > a ready made object for me to manipulate.
> >
> > eg:
> >
> > Var
> >     Stuff: TStrings;
> >     i: integer;
> > begin
> >     Stuff := TStringList.Create;
> >     try
> >         Stuff.LoadFromFile(FileName);
> >         for i := 0 to stuff.Count - 1 do
> >             ShowMessage(Stuff[i]); // do things with the line
> >     finally
> >         stuff.free;
> >     end;
> > end;
> >
> > Must easier and able to do lots of excellent things with it - for
example,
> > by using the Values and Names properties, I can read and manipulate ini
> > files much easier than the inbuilt TIniFile object.
> >
> > Steve
> > ------------------------------------------------------------------
> > ---------
> >     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"
> >
>
> --------------------------------------------------------------------------
-
>     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"
>

---------------------------------------------------------------------------
    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"

Reply via email to