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

Username:   Password: 
 RegisterRegister   
 Creating a .txt file within turing
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dymd3z




PostPosted: Mon May 28, 2007 7:55 am   Post subject: Creating a .txt file within turing

How do I do this, and assign contents of an array to it.
Sponsor
Sponsor
Sponsor
sponsor
Albrecd




PostPosted: Mon May 28, 2007 3:42 pm   Post subject: Re: Creating a .txt file within turing

You should start by reading Clayton's tutorial on File I/O and if you still have questions, feel free to ask.
Clayton




PostPosted: Mon May 28, 2007 4:25 pm   Post subject: RE:Creating a .txt file within turing

A quick and dirty example. You'd still do well to read that tutorial though.

Turing:

var stream : int

open : stream, "test.txt", put %or write if you like

put : stream, "Look what I did!"

close : stream
Shades




PostPosted: Wed Jun 06, 2007 7:28 pm   Post subject: RE:Creating a .txt file within turing

If turing is running a file input statement and the .txt doesn't exist, turing will just create it in the same location as the .t file
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: