Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

read streams line by line

Is there a way in Delphi to read streams ,line by line?

Is there a way to set the encoding of the stream?

I know of

TEncoding.getEncodingPage(1250); 

How to get it from stream?

like image 937
none Avatar asked Dec 06 '22 20:12

none


1 Answers

I think you're looking for TStreamReader. You set the encoding in the constructor and then call ReadLine.

In terms of how to get the encoding from the stream, that depends very much on what is in the stream, doesn't it?

like image 105
Craig Stuntz Avatar answered Dec 11 '22 09:12

Craig Stuntz