C++ (Qt)const QString str = file.readLine ();const QStringList l = str.split (";");QVector <double> v;bool ok;foreach (const QString& number, l) { const double d = number.toDouble (&ok); if (ok) { v.push_back (d); }}