
-----------------------------------
zOriginaL
Sun Jun 13, 2010 6:47 pm

How do I get my program to read text from a datafile?
-----------------------------------
What is it you are trying to achieve?
I'm trying to import text from a datafile and put it on the run window.

-----------------------------------
Unnamed.t
Sun Jun 13, 2010 7:00 pm

Re: How do I get my program to read text from a datafile?
-----------------------------------
So basically when you are doing IO in turing the same input rules apply:

Use (1) to get one character input, use * to get the whole line.

Use the following code to run an input stream, make sure the file is in the same folder as your turing file.

var input : int
open : input, "DATA.txt", get

var str : string

get : input, str

get : input, str : *

put str

-----------------------------------
Tony
Sun Jun 13, 2010 7:01 pm

RE:How do I get my program to read text from a datafile?
-----------------------------------
Turing Walkthrough links to appropriate tutorial(s) for reading from a file
