All Hi!
Not large practical question...
I try to write data from file to info window of IDA5, but get
Anyone know what the problem is?
Thank you for your help.
size_plugin.cpp
//...
FILE *fp = ecreateT(resfile);
if (fp == NULL)
warning("Unable to craete file, %s\n", resfile);
char buf[MAXSTR];
qsnprintf(buf, sizeof(buf)-1, "FooFooFooFooFooFooFooFooFooFooFooFoo\nFooFooFooFooFooFooFooFooFoo\n");
ewrite(fp, buf, strlen(buf));
qfclose(fp);
FILE * fp_see = openRT(resfile);
if (fp_see == NULL)
warning("Unable to open file, %s\n", resfile);
int i=0;
char ch;
while( (ch = qfgetc(fp_see)) != EOF ) i++;
msg( "size of file = %d\n", i );
char buf_see[MAXSTR];
eread(fp_see, buf_see, i-1);
buf_see[i-2]='\0';
info(buf_see);
eclose(fp_see);







