Current location: Hot Scripts Forums » Programming Languages » Everything Java » How to save for later retrieve data?


How to save for later retrieve data?

Reply
  #1 (permalink)  
Old 05-29-04, 11:59 PM
Jason Roldan Jason Roldan is offline
New Member
 
Join Date: Apr 2004
Location: California
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
How to save for later retrieve data?

I am working on a poker game, but right now, i have no means to saving the "money" that the user wins, so that when he comes back to play again, he will play with the new amount, instead of playing with the default amout. If anybody of you can help me out, it will be greatly appretiate it, since i've posted two messages, and gotten anything back. Hope to hear from you. LATES
Reply With Quote
  #2 (permalink)  
Old 06-13-04, 12:16 PM
Rob_Darkins Rob_Darkins is offline
Newbie Coder
 
Join Date: Jun 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
It depends..
this poker game, is it an applet, for the net?

either way, by outputting the value to a file, and storing it somewhere should do the job.
Simply create a file with the variable (or whatever) in it, then read from the file next time, and retrieve the value from it.

For code to read/write to files, go to: www.javaalmanac.com
and search "file".

Good luck,
Rob Darkins.
rob_darkins@hotmail.com
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieve data from database and send to email jilshi JavaScript 0 03-10-04 01:19 AM
retrieve data from combo box sasi ASP 1 09-03-03 06:16 PM
QueryString and retrieve data from database pjm ASP 3 08-11-03 02:21 PM
retrieve data from database vioss PHP 4 08-03-03 04:51 AM


All times are GMT -5. The time now is 06:05 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.