
-----------------------------------
dymd3z
Mon May 28, 2007 7:55 am

Creating a .txt file within turing
-----------------------------------
How do I do this, and assign contents of an array to it.

-----------------------------------
Albrecd
Mon May 28, 2007 3:42 pm

Re: Creating a .txt file within turing
-----------------------------------
You should start by reading Clayton's tutorial on [url=http://www.compsci.ca/v3/viewtopic.php?t=12972]File I/O and if you still have questions, feel free to ask.

-----------------------------------
Clayton
Mon May 28, 2007 4:25 pm

RE:Creating a .txt file within turing
-----------------------------------
A quick and dirty example. You'd still do well to read that tutorial though.


var stream : int

open : stream, "test.txt", put %or write if you like

put : stream, "Look what I did!"

close : stream


-----------------------------------
Shades
Wed Jun 06, 2007 7:28 pm

RE:Creating a .txt file within turing
-----------------------------------
If turing is running a file input statement and the .txt doesn't exist, turing will just create it in the same location as the .t file
