new function write QStringList to file