×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: C
Posted by: Damian Pytkowski
Added: May 2, 2016 8:38 PM
Views: 9
Tags: files copy pliki
  1. #include <locale.h>
  2. #include <stdio.h>
  3. #include <wchar.h>
  4. #include <windows.h>
  5. #include <utf8proc.h>
  6.  
  7. void main()
  8. {
  9.     FILE *fr,*fw;
  10.     char c;
  11.     if((fr = fopen("oryginal1.txt", "r"))==NULL)printf("Blad otwarcia.");
  12.     if((fw = fopen("oryginal2.txt", "w"))==NULL)printf("Blad zapisu.");
  13.     c = fgetc(fr);
  14.     while (c != EOF)
  15.     {
  16.         fputc(c,fw);
  17.         c = fgetc(fr);
  18.     }
  19.     printf("%d",c);
  20. }
  21.