forked from jaildesigner-jailgames/jaildoctors_dilemma
Ya crea la carpeta de sistema en Linux
This commit is contained in:
@@ -135,6 +135,15 @@ void Stats::saveToFile()
|
||||
// Crea y abre el fichero de texto
|
||||
std::ofstream file(filePath);
|
||||
|
||||
if (file.good())
|
||||
{
|
||||
std::cout << filePath << " open for writing" << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << filePath << " can't be opened" << std::endl;
|
||||
}
|
||||
|
||||
// Escribe en el fichero
|
||||
file << "# NOMBRE DE LA HABITACION;VISITAS;MUERTES" << std::endl;
|
||||
for (auto item : list)
|
||||
|
||||
Reference in New Issue
Block a user