Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5957217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:22:10+00:00 2026-05-22T18:22:10+00:00

I am using the java properties class to append a value to my config

  • 0

I am using the java properties class to append a value to my config file with this code.(I stripped out error handling and whatnot)

Properties configFile = new Properties();
configFile.setProperty(key, value);
configFile.store(new FileOutputStream("plugins/WirelessRedstone/receivers.properties", true), null);

When I append a key value pair, the current date and time is added before my pair. example #Thu May 26 03:39:59 EDT 2011.

How can I make this stop?

Thanks a bunch, giodamelio

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:22:10+00:00Added an answer on May 22, 2026 at 6:22 pm

    As per Java Docs of store method in Properties..it always writes that line

    Next, a comment line is always written, consisting of an ASCII # character, the current date and time (as if produced by the toString method of Date for the current time), and a line separator as generated by the Writer.

    you can write your own store method for this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

java.lang.NoClassDefFoundError: happens sporadically on Resin sever start up This is on Resin 3.0.21 Using
I'm developing a web application using Java EE6 and JSF 2.0. I have a
How can you capture Video using Java ? You have to use JMF ?
I am working on a Java project after a period using C++ and C#,
I'm using Jackson 1.6.4 and Java JDK 6. I don't want to use Jackson
I'm not so experienced but i worked on some big Java EE projects (using
For an executable Jar with a Main Class in the Manifest: When I launch
I am using Weblogic 10g clustered environment to deploy my application. In my application,
I'm using org.apache.tools.ant.listener.Log4jListener to manage logging with my ant script. The ant script is
I am trying to learn Hibernate from Java Persistence with hibernate by Gavin King.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.