hi friends,
thanx for different views on this.
i tried with ftell
size1=ftell(fp);
fprintf(fp,"%s %0.4f %0.4f\n",sampling,pos,rat);
size2=ftell(fp);
printf("%d",size2-size1);
then the optput is
176
203
230
257
284
311
355
..
..
but the way writing in to file like
2007-10-10;2:10:25 45 100
2007-10-10;2:10:26 145 100
2007-10-10;2:10:27 245 100
like wise writing into file.
my doubt is will fprintf return characters including space ?
ftell returning bytes or postion in the file?
can we calculate with printf no: of bytes written to file?
will the above code returning bytes?