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

Username:   Password: 
 RegisterRegister   
 How do u save into a textfile
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
heythere




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




PostPosted: Thu Jun 19, 2003 11:46 am   Post subject: (No subject)

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




PostPosted: Thu Jun 19, 2003 11:48 am   Post subject: (No 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.
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: