Поэтому я сравнил std::ofstream с fprintf (см. переключатель, который я использовал ниже)
Код: Выделить всё
case 0: {
std::ofstream out(title, std::ios::out | std::ios::trunc);
if (out) {
ok = true;
for (i=0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/7877553/very-surprising-perfs-of-fprintf-vs-stdofstream-fprintf-is-very-slow[/url]