-
-
Save parzibyte/5cd2b70ac0891d9b095c8f988cf49355 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void guardar_personas_en_archivo(vector<Persona> personas) | |
{ | |
ofstream archivo; | |
archivo.open(NOMBRE_ARCHIVO, fstream::out); | |
int i; | |
for (i = 0; i < personas.size(); i++) | |
{ | |
Persona persona = personas[i]; | |
archivo << persona.edad << DELIMITADOR << persona.nombre << "\n"; | |
} | |
archivo.close(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment