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

Username:   Password: 
 RegisterRegister   
 how to create txt file
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lufthansa747




PostPosted: Wed Dec 23, 2009 8:40 pm   Post subject: how to create txt file

What is it you are trying to achieve?
is it possible to create a txt file in side with turing because i am trying to make a game where the player can make a custom map and call it what ever they want. if so how

Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
TheGuardian001




PostPosted: Wed Dec 23, 2009 9:33 pm   Post subject: Re: how to create txt file

I believe that opening a file for writing will create the file if it doesn't exist.
So just open it like you would any other text file with the open : fNum, fName, fMode command.
DtY




PostPosted: Wed Dec 23, 2009 10:03 pm   Post subject: Re: how to create txt file

TheGuardian001 @ Wed Dec 23, 2009 9:33 pm wrote:
I believe that opening a file for writing will create the file if it doesn't exist.
So just open it like you would any other text file with the open : fNum, fName, fMode command.
Yup, if you open in write mode, the file will automatically be created, if it doesn't exist.

Check out the tutorial: http://compsci.ca/v3/viewtopic.php?t=12972
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  [ 3 Posts ]
Jump to:   


Style:  
Search: