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(fscanf(in, "%s", niza) != EOF) {
- printf("%s\n", niza);
- for(int i = 0; i < strlen(niza); i++) {
- // pravime toa sto ni se bara od zadacata
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment