Computer Science Canada

HELP with TextFiles

Author:  omgwtfitsp [ Tue Dec 16, 2008 7:53 pm ]
Post subject:  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.

Author:  Tony [ Tue Dec 16, 2008 8:08 pm ]
Post subject:  RE:HELP with TextFiles

When in doubt, refer to Turing Walkthrough

Which in turn, would point you to File I/O Tutorial

Author:  andrew. [ Wed Dec 17, 2008 6:00 pm ]
Post subject:  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.

Author:  S_Grimm [ Wed Dec 17, 2008 8:08 pm ]
Post subject:  RE:HELP with TextFiles

or Just click the link Tony so kindly provided?

Failing that, how about you try to ASK your TEACHER?


: