daily pastebin goal
59%
SHARE
TWEET

Odczytywanie zawartości z pliku

a guest Dec 19th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. char liczba[1000];
  2.    
  3.     FILE *wp;
  4.  
  5.    
  6.  
  7.     if ((wp = fopen("zadanie.txt", "r")) == NULL) {
  8.         printf("Cos poszlo nie tak");
  9.         exit(1);
  10.  
  11.     }
  12.    
  13.     fscanf(wp,"%s", liczba);
  14.     printf("%s", liczba);
  15.     fclose(wp);
  16.  
  17.     return 0;
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