[metapost] Problem with readfrom

Christophe Poulain christophe.poulain at melusine.eu.org
Sun Jun 13 20:33:37 CEST 2010


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 ?

Greetings,
Christophe Poulain


More information about the metapost mailing list