✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
в якому режимі буде відкрито файл в наведеному коді?
void print(QIODevice *pdev)
{
char ch;
QString str;
pdev->open(QIODevice::ReadOnly);
for (; !pdev->atEnd();)
{
pdev->getChar(&ch);
str += ch;
}
pdev->close();
qDebug() << str;
}