for (vector<string>::iterator i = data.begin(); i != data.end(); ++i) { ofile << *i << std::endl; }
foreach(data, []<class T>(const T & item) { ofile << item << std::endl; });