Computer Science Canada How do I get my program to read text from a datafile? |
Author: | zOriginaL [ Sun Jun 13, 2010 6:47 pm ] |
Post subject: | 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. |
Author: | Unnamed.t [ Sun Jun 13, 2010 7:00 pm ] | ||
Post subject: | 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.
|
Author: | Tony [ Sun Jun 13, 2010 7:01 pm ] |
Post subject: | 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 |