Advertisement
Patresss

1.6

Sep 2nd, 2014
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. void zapisz(float tab[],char *fbinname, char *ftextname)
  2. {
  3. int i;
  4.     FILE *plik_b=fopen(fbinname,"wb");
  5.     fwrite(tab,5,sizeof(float),plik_b);
  6.     fclose(plik_b);
  7.  
  8.     FILE *plik_t=fopen(ftextname,"w");
  9.     for(i=0;i<5;i++)
  10.     fprintf(plik_t,"%f ",tab[i]);
  11.     fclose(plik_t);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement