[metapost] Problem with readfrom

Karel horakk at math.cas.cz
Mon Jun 14 03:22:47 CEST 2010


Christophe Poulain napsal(a):
> hi,
> 
> i've used the following code
> 
> beginfig(1);
> string toto;
> toto="datas/"&"fichier.dat"
> numeric num;
> num=scantokens readfrom toto;
> endfig;
> 
> (fichier.dat is a file with numeric numbers, one per line)
> 
> but, with metapost 1.203, it doesn't compile and with metapost 0.993,
> it compile.
> With metapost 1.203,
> 	num=scantokens readfrom "datas/fichier.dat"
> works.
> 
> Where is the problem ?
> 

The line
toto="datas/"&"fichier.dat"
should end with ;

All the best,
Karel Horak


More information about the metapost mailing list