Results 1 to 2 of 2
  1. #1
    palie is offline Member
    Join Date
    Jan 2012
    Rep Power

    Wink how to put score in my snake games

    ok. i have heard about to save or to keep the score mark in some text files. its more easier instead of using jdbc.
    so can anybody tell me it is possible to do that and how to build that..really need your help. any others information i can tell it later,thank you

  2. #2
    Diargg is offline Senior Member
    Join Date
    Feb 2012
    Rep Power

    Default Re: how to put score in my snake games

    This tutorial will teach you about file IO. I find it to be a bit cumbersome though - a lot more information than you can probably use right now. Instead, I would suggest learning how to use IO.FileWriter. It should be straightforward enough for you. Try to open the file, write to it, and then close it. Eventually you'll want to look into appending rather than rewriting.

Similar Threads

  1. Snake Game
    By LuluMM in forum New To Java
    Replies: 0
    Last Post: 03-08-2012, 07:48 AM
  2. snake and ladder
    By angela in forum Java Applets
    Replies: 2
    Last Post: 04-09-2011, 06:28 PM
  3. Snake game in java
    By freaky in forum New To Java
    Replies: 5
    Last Post: 04-20-2010, 07:34 PM
  4. Snake Game
    By mustachMan in forum New To Java
    Replies: 2
    Last Post: 12-10-2009, 11:35 PM
  5. How to make my snake grow?
    By AndersBjörnör in forum AWT / Swing
    Replies: 20
    Last Post: 11-15-2009, 03:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts