
-----------------------------------
lufthansa747
Wed Dec 23, 2009 8:40 pm

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

-----------------------------------
TheGuardian001
Wed Dec 23, 2009 9:33 pm

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
Wed Dec 23, 2009 10:03 pm

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.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
