Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void obrabotka_file(char *fname_i, char *fname_r)
- {
- FILE *in, *out; //start and result files (streams)
- char st[RAZ]; //start string
- char sr[RAZ]; //result string
- char pr[RAZ]; //handling word
- int i, j, k; //number of the handling word
- int n; // string's result length
- in = fopen(fname_i, PR_R); //open file for reading
- out = fopen(fname_r, PR_W); //open file for writing
- fgets(st, RAZ, in); //reading string from "in" file
- while (!feof(in))
- {
- i = 0;
- n = 0;
- sr[i] = '