On 17/10/2008, at 10:51 AM, David Joyner wrote:

>
> Hi:
>
> I want to call a C program in Sage which is included with Sage  
> (wtdist).
> What is the easiest way to do this? The line I'd like to execute  
> looks like
>
> wtdist filename::code > output.txt

output_txt = os.popen('wtdist filename::code').readlines()

I think that's all you need.  I don't see anything improper with it.

D







--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to