Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include <stdio.h>
- #include <stdlib.h>
- int main(){
- FILE* plik;
- char tekst[] = "no siema!";
- plik = fopen("plik.txt","w");
- if (plik == NULL){
- printf("Blad");
- exit(1);
- }
- fprintf(plik, "%s", tekst);
- fclose(plik);
- printf("lol, pyklo\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement