[fpc-devel] TStringList.LoadFromFile and SavetoFile - file encoding support

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Feb 3 12:51:54 CET 2009


On Tue, Feb 3, 2009 at 1:33 PM, Sergei Gorelkin <sergei_gorelkin at mail.ru> wrote:
>
> Strings.LoadFromStream(TDecodingStream.Create(TFileStream.Create('myfile'),
> 'cp866', 'utf-8'));
>
> This approach isn't limited to decoding, you can do decrypting, compressing,
> etc.


That's actually a very clever idea.  :)


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list