Sscanf limited to 12 arguments

Hi,

I get the above error message when I try to analyze a line read from an
ASCII file.

The code:

char*temp, *text;
in=fopen(filename,“r”);
fscanf(in,"%[^\n]",temp);fgetc(in);
sscanf(temp,"%*c%lg%*c%lg%*c…%lg%*c%s",p1,p2,p3…pn, text);

The lines of the file to read look like this:

'Text(0.0,0.4,0,5,…,23,“description”);'
I need to anaylze the string “Text”, relate the numbers and the string
"description" to it while getting rid of the brackets and semicolons.

I looked around in the forum, but didn’t really find a solution to this, sorry.

Cheers,
Joachim

Hi,

you could either compile your ciode (.L or .x mycode.C+) or use istreams. See e.g. the posting by firewireguy-ga at local.google.com/answers/threadview?id=602008.

Cheers, Axel.