csvOutput now uses QtUtils::writeFile