Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 30, 2020 00:33
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/1d99d65ba94720f355ea349200a0713c to your computer and use it in GitHub Desktop.
Save parzibyte/1d99d65ba94720f355ea349200a0713c to your computer and use it in GitHub Desktop.
// Arreglo de cadenas: aquí almacenamos todas las palabras
char palabras[CANTIDAD_LINEAS][MAXIMA_LONGITUD_CADENA];
// Útil para leer el archivo
char buferArchivo[MAXIMA_LONGITUD_CADENA];
// Abrir el archivo...
FILE *archivo = fopen(NOMBRE_ARCHIVO, "r");
if (archivo == NULL)
{
printf("No se puede abrir el archivo");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment