Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <ctype.h>
- #include <math.h>
- int main(int argc, char * argv[]) {
- FILE * in = fopen(argv[1], "r");
- FILE * out = fopen(argv[2], "w");
- if(in == NULL || out == NULL) {
- printf("Ne postoi datotekata\n");
- return 0;
- }
- char niza[2000];
- while(fgets(niza, 80, in) != NULL) {
- for(int i = 0; i < strlen(niza); i++) {
- printf("%c ", niza[i]);
- }
- printf("\n");
- // tuka pisuvame sto i da bara zadacata
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment