i'm trying to find the occurences of a particular character in a text file , then replace it with another one . I've tried something like this `
c=fgetc(f1);
while(c!=EOF)
{
if(c=='s')
{
fprintf(f1,"c");
}
c=fgetc(f1);
}
i'm trying to find the occurences of a particular character in a text file , then replace it with another one . I've tried something like this `
c=fgetc(f1);
while(c!=EOF)
{
if(c=='s')
{
fprintf(f1,"c");
}
c=fgetc(f1);
}