Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i=0;i<5*n;i++){ // 5*n poniewaz jedno pytanie sklada sie z 5 wprowadzeń ( zdań )
- char wiersz[50];
- fgets( wiersz, 50, stdin );
- file = fopen("baza_danych.txt", "a+");
- fprintf(file, "%s\n", wiersz);
- fclose(file);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement