%s%d

Hi

we have an array names which are as follows:
True1_Meas1, True2_Meas2, True3_Meas3,.....

we would like to read those names from a file which we store them.
We tried using this %s%d_%s%d to read them but it didn't work.
for (int i = 1; i != 8; ++i) {
f1->Get(Form("%s%d_%s%d","True1_Meas1",i)
}
it gave following error
Error: illegal pointer to class object 0x0 1442
*** Interpreter error recovered ***

any help appriciated
If this works anything like scanf you are trying to read into rvalues.
Topic archived. No new replies allowed.