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

Username:   Password: 
 RegisterRegister   
 Saving Values
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Snicket




PostPosted: Thu Jun 08, 2006 5:03 pm   Post subject: Saving Values

How does one save a variable to file for later use and still be able to manibulate it. example : a high score chart.
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Thu Jun 08, 2006 5:13 pm   Post subject: (No subject)

You can modify the value of a variable even after you write it to a file. It won't, however, update the value in that file. If you later get a new score that should be on the high score list, you need to rewrite to that file.
Snicket




PostPosted: Thu Jun 08, 2006 5:18 pm   Post subject: (No subject)

how does one write it to a file?
Cervantes




PostPosted: Thu Jun 08, 2006 5:27 pm   Post subject: (No subject)

One would go to thine Turing Walkthrough and search for the tutorial on Files Input/Output.
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: