Advertisement
CotaIgnorada

archivo sobre otro

Nov 26th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. char caracter= 'a';
  3. FILE *texto;
  4. FILE *texto2;
  5. texto=fopen("texto.txt","r");
  6. texto2=fopen("texto2.txt","w");
  7. while (caracter != EOF){
  8. caracter= getc(archivo);
  9. fprintf(texto2,"%c", caracter);
  10. }
  11. fclose(texto);
  12. fclose(texto);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement