What would be least expensive in this situation?
QStringList lineStringList
= file
->readLine
().
split("\t");
QStringList lineStringList = file->readLine().split("\t");
To copy to clipboard, switch view to plain text mode
or
QString lineString
= file
->readLine
();
QString lineString = file->readLine();
QStringList lineStringList = lineString.split("\t");
To copy to clipboard, switch view to plain text mode
Thanks!
BTW, the first one doesn't compile because it's not a QString but a byte array, but still, is it better to create a variable for each step or to combine?
~codeslicer
Bookmarks