Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- FILE *fp;
- char nombre[64];
- printf("Introduce el nombre del archivo mas su terminacion:\n");
- gets(nombre);
- if((fp=fopen(nombre,"r"))==NULL)
- {
- printf("No se puede abrir el archivo\n");
- exit(1);
- }
- fclose(fp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement