file i/o and remove something
Hi,
i have a problem of removing some text from a file between this characters <>. For example:
input file
#include <stdio.h>
output file
#include <>
I did this so far:
Code:
#include <stdio.h>
int main()
{
FILE *vData, *iData;
int c;
vData=fopen("test.txt", "rt");/*vhodDatoteka*/ // input file
iData=fopen("test01.txt", "wt");/*izhodDatoteka*/ // output file
while((c=fgetc(vData))!=EOF){ //reading the character
putc(c, iData); // copying characters to output file
/*if(c=='<'){
}*/
}
fclose(vData);
fclose(iData);
return 0;
}
And this is where iam stuck. I dont know how to countinue. Can anyone please give me some pointers how to solve this.
Thank you.