Advertisement
poczatkujacykoder

Untitled

Oct 17th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.94 KB | None | 0 0
  1.     //////////////////////////// ZAPISYWANIE DO PLIKU "ZASZYFROWANE.TXT"
  2.     FILE* zapis_szyfru;
  3.     zapis_szyfru = fopen("zaszyfrowane.txt", "w");
  4.     if (!zapis_szyfru)
  5.         return -3;
  6.  
  7.     fprintf(zapis_szyfru, "%s", zakodowane );
  8. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  9.     printf("\n//////////////////////////////////////\nDRUGA CZESC \n//////////////////////////////////////\n\n");
  10. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  11.  
  12.     ////////////////////////////
  13.     FILE *abc;
  14.     abc = fopen("zaszyfrowane.txt", "r");
  15.     if (!abc)
  16.         return -4;
  17.  
  18.     ////////////////////////////
  19.  
  20.     fseek(abc, 0, SEEK_END);
  21.     fgetpos(abc, &dz_abc_fpos_t);
  22.     fseek(abc, 0, 0);
  23.     dz_abc_int = (int)dz_abc_fpos_t;
  24.  
  25.     printf("liczba znakow w pliku to = %d\n", dz_abc_int);
  26.     ///////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement