Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Boolean writing and reading

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts

    Default Boolean writing and reading

    I would like to create a file that contains one boolean.
    It should be able to create the file when it isn't there and the boolean should be false when created. It should also be able to read if the boolean is true or false every time it starts the game.
    When the boolean becomes true in game it should change it in the file.

    How do I do that?
    Are there any good video tutorials on this?

  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    My Mood
    Thanked 263 Times in 232 Posts

    Default Re: Boolean writing and reading

    Have you tried reading the documentation for the language you are trying to use?

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: Boolean writing and reading

    And another link worth reading: Properties (The Java™ Tutorials > Essential Classes > The Platform Environment)

Similar Threads

  1. Reading and writing files in a JApplet
    By Majora94 in forum File I/O & Other I/O Streams
    Replies: 8
    Last Post: February 21st, 2012, 01:53 PM
  2. Reading In Then Writing Out Massive Files
    By aussiemcgr in forum Java Theory & Questions
    Replies: 3
    Last Post: July 28th, 2011, 07:00 PM
  3. file reading & writing
    By macko in forum What's Wrong With My Code?
    Replies: 7
    Last Post: May 12th, 2011, 08:54 AM
  4. Reading a writing binary file
    By stu1811 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: July 30th, 2010, 12:58 PM
  5. Reading and Writing Text Files
    By kappasig84 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: March 1st, 2010, 07:16 PM