TString

Hello,

I use root 5.14 and have a strange problem.
I construct a TString object called ‘output’:

output+=ib; // ib is Int_t
output+="->";
output+=chterm1;
output+="->";
output+=chterm2;
output+="->IP";
output+=iir; // iir is Int_t
output+="->";

I do:
cout << output
and it is OK, but when I write to a file:
fprintf(outf,"%s\n",output.Data());
the string is written as if ib and iir were zero… and they are not!
What could it be?

Regards, Mariusz

Please send me a complete example with complete output (no …) to see what really goes on.

Cheers, Fons.