I need to read huge Unicode files into my program and convert to ANSI for parsing and for some files, store them again as Univode while others should be in ANSI code page.
As I have understood it, simple read/write don't support Unicode text, and for the biggest files (some maybe as big as 300 Mb or even bigger) using twidestring.loadfromfile
is out of question both because memory usage and time to load.
I have been wondering if loading blocks could be a path of solution, but as I know, it doesn't support Unicode BOM ?
Any suggetions?