Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 25
Registered: ‎09-08-2008
My Device: Not Specified

How to read .properties file in BB application?

Hi,

 

Is there any way to read .properties file with in BB application. I placed .properties in resources folder.  BB is not supporting java.util.Properties file, java.io.FileInputStream without using these classes how will i read .properties file? Please suggest me solution for this.

Advanced thanks to any help.

 

BlackBerry Development Advisor
Posts: 15,723
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to read .properties file in BB application?

Assuming the file is being built within your application, here is an example of how to read it from your cod file.

 

How To - Add plain text or binary files to an application
Article Number: DB-00148

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker