Well it depends what you want to do. If you just want to draw a line based on stuff you have on disk then that is a different scenario form animating a curve by mathematical equations. There's a strict what you should do with mel and what you should not do under any circumstances, unless you want to change the entire maya execution environment.
I mean its ok to heap a lot of data into maya in one go by batch but its nt productive to loop over big structures continuous. As mel is not supposed to playback anything. It is supposed to build the scaffolding needed for running.
here's a basic example of pouring data in.
CODE
{
$pnts={<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>,
<>
};
$crv=curve -d 3 -p 0 12.762147 0;
for ($vect in $pnts){
curve -ws -a -p ($vect.x) ($vect.z+12.762147) ($vect.y) $crv;
}
}