-
-
Save parzibyte/76938cf3756a40182d02fbf2fbc9d419 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
FILE *archivo; | |
unsigned char bufer[TAMANIO_BUFER]; | |
archivo = fopen(nombreArchivo, "r"); | |
if (archivo == NULL) | |
{ | |
printf("Error abriendo el archivo"); | |
return; | |
} | |
// Leer archivo | |
char contenido[TAMANIO_MAXIMO_CONTENIDO] = ""; | |
while (!feof(archivo)) | |
{ | |
fread(bufer, sizeof(char), sizeof(bufer), archivo); | |
// Almacenar contenido en el búfer | |
strcat(contenido, bufer); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment