Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QFile file("config");
- if (file.open(QIODevice::ReadOnly)) {
- foreach (QString line, file.readAll().split('\n')) {
- qDebug() << line.trimmed();
- }
- }
- Консоль:
- "6.30"
- "0.92"
- "1111"
- "1"
- "11.80"
- "2222"
- "2"
- "11.80"
- "58.00"
- "50.8"
- Или:
- QStringList lines = file.readAll().split('\n');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement