Home  | My Account  |  Membership
Forum Details
577 member(s)
718,905 hit(s)
14 categories
51 topics
26 messages
0 online
Author Topics Replies Views Last Updated
1 topic(s)
0 post(s)
J2ME: Getting a list of files in a directory (inside the .jar file) 1 3541 March 26, 2007 3:04 PM


I have a problem which should be quite simple, but I haven't been able to work it out. I want to create a list of files inside a directory within the .jar file, but all the instructions I've seen for listing files within a directory assume you're using the fileConnection API and listing an external directory. I don't want to require JSR75, and I've got a feeling that that can't see inside the .jar file anyway.

I can load the files themselves with no problems, and my current solution is to create a text file with a list of all the files in the directory, but this is a nuisance to keep updating. So can someone give me some pointers about how to create a String[] with a list of files inside an internal directory?

©2008 WorldDeveloper.org - PO Box 310575 Miami, FL 33231

WorldDeveloper.org is a managed social network for application developers around the world.