Computer Science Canada

Running a separate turing file with the system () command.

Author:  corriep [ Fri May 08, 2009 5:48 pm ]
Post subject:  Running a separate turing file with the system () command.

Hey guys quick question, what is the system () command to run a separate turing file?. For example, I want to create a file that runs "Hello, World!":
Turing:
var OUT : int
open : OUT, "file.t", put

put : OUT, "put \"Hello, World!\""
var foo : int
system ("command here", foo)


PS. found a bug w/ the preview button, when it is pressed in the Turing Help section, all your previous text is replaced by the template text Confused

Author:  Tony [ Fri May 08, 2009 7:50 pm ]
Post subject:  RE:Running a separate turing file with the system () command.

it's Sys.Exec. Though that could be used to start any executable file. Meaning that you would first have to compile the code.

Author:  corriep [ Fri May 08, 2009 8:25 pm ]
Post subject:  RE:Running a separate turing file with the system () command.

Ok then, how would I compile the new turing file into a .exe with Sys.Exec or system?

Author:  Euphoracle [ Fri May 08, 2009 9:25 pm ]
Post subject:  RE:Running a separate turing file with the system () command.

Download turing 4.1, and compile it. 4.1.1a won't do it.

In the Run menu under generate standalone program.

Author:  andrew. [ Sat May 09, 2009 9:55 am ]
Post subject:  Re: RE:Running a separate turing file with the system () command.

corriep @ Fri May 08, 2009 8:25 pm wrote:
Ok then, how would I compile the new turing file into a .exe with Sys.Exec or system?
You can't. You must compile it inside of Turing beforehand.


: