- Removed obsolete 'undelete' string.
This commit is contained in:
Paul Beckingham
2009-06-30 18:35:06 -04:00
parent af7803ea27
commit ed49546eac
8 changed files with 50 additions and 18 deletions

View File

@@ -426,6 +426,20 @@ void spit (const std::string& file, const std::string& contents)
throw std::string ("Could not write file '") + file + "'"; // TODO i18n
}
////////////////////////////////////////////////////////////////////////////////
void spit (const std::string& file, const std::vector <std::string>& lines)
{
std::ofstream out (file.c_str ());
if (out.good ())
{
foreach (line, lines)
out << *line;
out.close ();
}
else
throw std::string ("Could not write file '") + file + "'"; // TODO i18n
}
////////////////////////////////////////////////////////////////////////////////
bool taskDiff (const Task& before, const Task& after)
{