SHARE
TWEET

Untitled

a guest Apr 24th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define MAXLIN 80
  4. int main (){
  5.     FILE *du, *di;
  6.     char linija[MAXLIN];
  7.     du=fopen("stara.txt","r");
  8.     di=fopen("nova","w");
  9.     while (fgets(linija,MAXLIN, du)!=NULL){
  10.         fputs(linija, di);
  11.     }
  12.     fclose (du);
  13.     fclose (di);
  14.     return 0;
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top