Well, I tought to improve the function by:
while not WeHaveGotALine
ReadBufferChunk
ParseForEol
- ReadMoreBufferIfRequired
- SetStreamPositionWhereWeFoundEolToContinueThereLater
end;
So would that be usefull? Because any-way I must do it; loading a full
stream inmemory in not memory efficient, and loading it in a
TStringList has the same issue.
2006/6/7, Michael Van Canneyt <[EMAIL PROTECTED]>:
On Wed, 7 Jun 2006, Alexandre Leclerc wrote:
> I was looking for such a function and ask myself:
> - is it available in another unit in lcl so that I can use that in my app?
> - why not add TStream.Readln/Writeln directly? Whould be much better.
And very inefficient, because you can only read 1 character at a time.
TStream has no buffering capacity.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
--
Alexandre Leclerc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives