Computer Science Canada

How do u save into a textfile

Author:  heythere [ Thu Jun 19, 2003 11:45 am ]
Post subject:  How do u save into a textfile

hi im trying to input some info but then i want to put into another textfile
but i dunno
how
im new so plzzz help me out thxthx Laughing

Author:  JSBN [ Thu Jun 19, 2003 11:46 am ]
Post subject: 

Look for the tutorial.
http://www.compsci.ca/bbs/viewtopic.php?p=29#29

Author:  Blade [ Thu Jun 19, 2003 11:48 am ]
Post subject: 

if you check out the tutorials section there should be some good tuts on how to do it... but you need to make a "stream" to the file, and set it to "put" because you are writing to it. if you want to read you would have used "get"
code:
var streamout:int
open:streamout,"file",put

then you use
code:
put:streamout,"data here"

you may need to loop it if you are going to be writing a lot of stuff, like an entire array to a datafile.


: