SHARE
TWEET

Untitled

a guest Jun 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main() {
  2. FILE *file_input;
  3. FILE *file_output;
  4. char *input = "struct.txt";
  5. char symbol;
  6.  
  7. /*Открываем фаил*/
  8. do{
  9.     if((file_input = fopen(input, "r")) == NULL) {
  10.         printf("Файл с данными отстутствует.n");
  11.         printf("'qq' для выхода");
  12.     }
  13.     else if(input == "qq") {
  14.         scanf("%s", &input);
  15.     }
  16.     }while(file_input == NULL);
  17.  
  18. /*Заполняем массив структур*/
  19. while((symbol = fgetc(file_input))) {
  20.     printf("%c", symbol);
  21.  
  22. }
  23. fclose(file_input);
  24.  
  25. 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