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:
And this is where iam stuck. I dont know how to countinue. Can anyone please give me some pointers how to solve this.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; }
Thank you.