Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- FILE *f1;
- f1=fopen("mi_archivo.txt","a");
- if(f1==NULL){
- printf("No se puede abrir el archivo\n");
- return 0;
- }
- else{
- printf("El archivo se abrio\n");
- fprintf(f1,"Hola\n");
- fclose(f1);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement