B
Ben Hetland
Is there a simple and elegant _standard_ solution to the following, or
does somebody have pointer to a freely available implementation that
provides the following functionality?
I want to read text files.
I want to be flexible regarding the precise format used in the file, so
either plain ASCII (or iso-8859-1), Unicode (e.g. 16-bit wide), or some
UTF encoding (say UTF-8) should be equally acceptable.
Different styles of line-endings should also be accepted, e.g. \n\r vs \n.
I want the details of the actual encoding to be transparent to my
program, which can then only concern itself about interpreting the
content of the file. For instance, everything could be read as wchar_t
inside "my sources".
Preferrably should work with buffered reading.
Must work seemlessly with all std routines and other relevant library
functions (e.g. the std::getline template).
-+-Ben-+-
does somebody have pointer to a freely available implementation that
provides the following functionality?
I want to read text files.
I want to be flexible regarding the precise format used in the file, so
either plain ASCII (or iso-8859-1), Unicode (e.g. 16-bit wide), or some
UTF encoding (say UTF-8) should be equally acceptable.
Different styles of line-endings should also be accepted, e.g. \n\r vs \n.
I want the details of the actual encoding to be transparent to my
program, which can then only concern itself about interpreting the
content of the file. For instance, everything could be read as wchar_t
inside "my sources".
Preferrably should work with buffered reading.
Must work seemlessly with all std routines and other relevant library
functions (e.g. the std::getline template).
-+-Ben-+-