
-----------------------------------
omgwtfitsp
Tue Dec 16, 2008 7:53 pm

HELP with TextFiles
-----------------------------------
Hey guys, I was wondering how you can output things that are in text files. For example, you have a text file(.txt) with the number 1 - 5 entered row by row.

Eg.

1
2
3
4
5

So that's in the text file. My question is, how do you code it in Turing so you can output certain things in your text file. I know it has something to do with arrays. Something.... Stream, assert, open, I have no clue! I can't seem to find a topic about this so I am asking.

EDIT: Basically, I'm trying to write a program that can read from text files.

-----------------------------------
Tony
Tue Dec 16, 2008 8:08 pm

RE:HELP with TextFiles
-----------------------------------
When in doubt, refer to Turing Walkthrough

Which in turn, would point you to [url=http://compsci.ca/v3/viewtopic.php?t=12972]File I/O Tutorial

-----------------------------------
andrew.
Wed Dec 17, 2008 6:00 pm

RE:HELP with TextFiles
-----------------------------------
You don't even need to read the Turing walkthrough, Just press F10 in Turing and search for stream or File.

-----------------------------------
S_Grimm
Wed Dec 17, 2008 8:08 pm

RE:HELP with TextFiles
-----------------------------------
or Just click the link Tony so kindly provided?

Failing that, how about you try to ASK your TEACHER?
