STORM_LOG_THROW(stat(filename.c_str(),&info)!=0,storm::exceptions::IllegalArgumentValueException,"Could not open file '"<<filename<<"' for writing because file or directory already exists.");
std::ofstreamfilestream(filename);
STORM_LOG_THROW(filestream.is_open(),storm::exceptions::IllegalArgumentValueException,"Could not open file '"<<filename<<"' for writing.");