how to execute a external text file
hello everybody.
i'd like open and execute a external text file (wrotten with the fopen command).
$FileName = ( `internalVar -userTmpDir` + "tmp.txt" );
$fileId=`fopen $FileName "w"`;
fwrite $fileId "select -r nurbsTorus1 \;";
fclose $fileId;
however i don't know call back the file "tmp.txt" to execute it.
can you help me ?