Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ResourceBundle.getStringArray() ??!

Options
  • 16-06-2002 7:39am
    #1
    Registered Users Posts: 21,264 ✭✭✭✭


    I've been banging my head on this for a while.

    I take it that this command just does not work?

    How do you put a string array into a properties file? I don't think you can, but there is that command which is supposed to do it.

    I ended up just creating a comma delimted property and running stringtokenizer on it.


Comments

  • Registered Users Posts: 1,994 ✭✭✭lynchie


    ResourceBundle.getStringArray() only reads from an existing properties file. AFAIK, you would have to use the store() method in class Properties to do that. I havent used them in a while but I think this moght do it. Have a look at the javadocs for Properties


Advertisement