hdarwin

wechall.net_Choose your Path II

Jan 8th, 2013
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. main(){
  3.         FILE * fp;
  4.         FILE * fp2;
  5.         char ch[50];
  6.         fp = fopen("/tmp/sehan", "w");
  7.         fp2= fopen("/home/level/11/solution.txt", "r");
  8.         fread(ch, 50, 1, fp2);
  9.         fwrite(ch, 50,1,fp);
  10.         fclose(fp2);
  11.         fclose(fp);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment