saveToFile

refactor outFile with << endl