Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 16, 2021 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/69921d9bfed61ded959fe6e26229f7fa to your computer and use it in GitHub Desktop.
Save parzibyte/69921d9bfed61ded959fe6e26229f7fa to your computer and use it in GitHub Desktop.
ifstream archivo(NOMBRE_ARCHIVO);
string linea;
char delimitador = ',';
// Leemos la primer línea para descartarla, pues es el encabezado
getline(archivo, linea);
// Leemos todas las líneas
while (getline(archivo, linea))
{
// Magia aquí...
}
archivo.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment