Answer the question
In order to leave comments, you need to log in
How to read a line from a file before a line break or up to a certain character?
RAD Studio 10.4 development environment
The program reads data from an XML file, the file opens as follows
std::ifstream bfile;
bfile.open(w_file);
std::wbuffer_convert<std::codecvt_utf8_utf16<wchar_t>> conv(bfile.rbuf());
std::wistream in_file(&conv);
std::wifstream in_file;
in_file.open(w_file);
in_file.imbue(locale(in_file.getloc(), new codecvt_utf8<wchar_t, 0x10ffff, consume_header>));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question