Re: using fscanf within root ...

Masaharu Goto (gotom@hpyiddq.jpn.hp.com)
Thu, 29 Jan 1998 9:00:12 JST


Denis,

Cint limits number of arguments to fscanf to 12 as you observed.
This is due to absense of vfscanf function in standard C function.
Some environment has it but not all.

You can use C++ iostream library. Specifically ifstream.

Masaharu Goto

>
> I was using fscanf extensively in C files and try now to use it
> within root system in order to read some infos from ASCII files.
> The fscanf standard function seems to be really limited in arguments
> within root system:
> I was using fscanf with 40 arguments for I/O and does work in C,but
> with root the limitation seems to be upto 12 arguments only !
>
> Could someone tell me how to read ASCII files infos within root without
> using fscanf std function ?
> thanks a lot !