View Full Version : Getting Info From A File Inside A Variable
Danmoreno 01-19-2007, 07:05 PM Is there a way i can get a code inside txt to a variable?? thanks!
Daniel Moreno
www.danmoreno.com
|
|
hyliandanny
01-20-2007, 08:51 AM
If I'm reading your question correctly, it may benefit me as well. Are you asking whether we can take the code from a text file arbitrarily in someone's system and store it all inside a variable?
My own question is a reply under a poorly titled thread having to do with perl (it has multiple question marks at the end.... tomfoolery).
Im not sure if I fully understand your question but look at fopen fgetline fgetword and fread. They let you read in info from a file like a txt. each of them does it slightly different so check them all out
hyliandanny
01-21-2007, 09:38 AM
An earlier statement of my dilemma is also under "Perl is good for????" or "Python is good for????", though (rightly so), that thread may be overlooked for having too many question marks.
I've got a perl script that counts the number of frames in a media file (say, .avi). The perl script is called through MEL's system call. The way I was thinking of utilizing the content brought up in this thread is through the possibility of somehow retrieving the entire perl script and executing it all within MEL. This way, I eliminate that middleman. If one of ye gurus reassured me that such a thing was possible, then I'd know that I could actually achieve the task charged to me as an intern.
Again, that's to cut the middleman (perl script) out, and make it so that MEL does everything.
sparaig
01-21-2007, 05:47 PM
An earlier statement of my dilemma is also under "Perl is good for????" or "Python is good for????", though (rightly so), that thread may be overlooked for having too many question marks.
I've got a perl script that counts the number of frames in a media file (say, .avi). The perl script is called through MEL's system call. The way I was thinking of utilizing the content brought up in this thread is through the possibility of somehow retrieving the entire perl script and executing it all within MEL. This way, I eliminate that middleman. If one of ye gurus reassured me that such a thing was possible, then I'd know that I could actually achieve the task charged to me as an intern.
Again, that's to cut the middleman (perl script) out, and make it so that MEL does everything.
?? Are you saying you want to do everything in MEL or to load the PERL script for some reason? How would executing the script from within MEL be superior to having it execute by calling the script for running outside MEL assuming that this is possible in any meaningful way?
hyliandanny
01-22-2007, 07:54 AM
?? Are you saying you want to do everything in MEL or to load the PERL script for some reason?
Yes, that is correct: I would like to do everything in MEL. The script makes system calls which call a PERL script, and I want to take this out and make it so MEL does everything.
How would executing the script from within MEL be superior to having it execute by calling the script for running outside MEL assuming that this is possible in any meaningful way?
This would make it cleaner in that it would be purely MEL code, and would eliminate the need for calling the PERL script; that's what this little MEL intern was told to do. :)
Is it possible? What further research must I do?
CGTalk Moderation
01-22-2007, 07:54 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.