Function Dune::XT::Common::make_ofstream

int Dune::XT::Common::make_ofstream(const int &path, const std::ios_base::openmode mode = std::ios_base::out)

creates the directories leading up to path (if needed) and returns an ofstream opened on it