Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 HELP with TextFiles
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
omgwtfitsp




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
andrew.




PostPosted: 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.
S_Grimm




PostPosted: 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?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: