公告
财富商城
积分规则
提问
发文
2019-01-09 17:20发布
乱世女痞
How can I open a QFile for appending, i.e. the equivalent of
FILE *f = fopen("myfile.txt", "a");
Open the file in QIODevice::Append mode:
QIODevice::Append
QFile f(...); if (f.open(QIODevice::WriteOnly | QIODevice::Append)) { ... }
See also the documentation.
最多设置5个标签!
Open the file in
QIODevice::Append
mode:See also the documentation.