Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 16-04-2015 , 05:44 PM
Registered User
Join Date: Dec 2007
Posts: 1

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 ?

# 2 17-04-2015 , 06:02 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988


Imagination is more important than knowledge.
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads