#488807 11.03.2010 10:34:53
#include <stdio.h>
#include <stdlib.h>
#define N 1
int main(int argc, char *argv[])
{
char tab[] = {' ', ',', ';'};
char i, c;
FILE *fin;
FILE *fout;
fin = fopen("xxx.txt", "r"
;
fout = fopen("zzz.txt", "w"
;
if (fin == NULL) perror ("Error opening file"
;
while(!feof(fin))
for(i=0; i<N; i++)
{
c = fgetc (fin);
for(i=0; i<N; i++)
if (c == tab[i])
;
else
{
fputc (c, fout);
printf ("%c", c);
}
}
fclose (fin);
return (0);
}
#include <stdlib.h>
#define N 1
int main(int argc, char *argv[])
{
char tab[] = {' ', ',', ';'};
char i, c;
FILE *fin;
FILE *fout;
fin = fopen("xxx.txt", "r"
fout = fopen("zzz.txt", "w"
if (fin == NULL) perror ("Error opening file"
while(!feof(fin))
for(i=0; i<N; i++)
{
c = fgetc (fin);
for(i=0; i<N; i++)
if (c == tab[i])
;
else
{
fputc (c, fout);
printf ("%c", c);
}
}
fclose (fin);
return (0);
}