Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <ctype.h>
- #include <string.h>
- int main() {
- FILE * in = fopen("input.txt", "r");
- FILE * out = fopen("output.txt", "w");
- if(in == NULL) {
- printf("Fajlot ne postoi\n");
- return 0;
- }
- char s[1000];
- while(fgets(s, 500, in) != NULL) {
- fprintf(out, "%s", s);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement